Compare commits
2 commits
00872dfed2
...
f586eaa8a2
| Author | SHA1 | Date | |
|---|---|---|---|
| f586eaa8a2 | |||
| d983206785 |
3 changed files with 6 additions and 30 deletions
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ $# -ge 2 ]; then
|
|
||||||
CMD="nvim $2 -c \"$1\""
|
|
||||||
else
|
|
||||||
CMD="nvim $1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec alacritty -t Evolution -e ${CMD}
|
|
||||||
|
|
@ -1,17 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Count the number of unread emails and return the count in the i3/sway bar
|
# Count the number of unread emails and return the count in the i3/sway bar format.
|
||||||
# format.
|
|
||||||
|
|
||||||
# Settings
|
# Settings
|
||||||
MAILDIRNEW="$HOME/Dokumente/eMails/*/INBOX/new/"
|
MAILDIRNEW="$HOME/Dokumente/eMails/*/INBOX/new/"
|
||||||
|
|
||||||
# Count new mails
|
# Count new mails
|
||||||
MAILNEW="$(find $MAILDIRNEW -type f | wc -l)"
|
MAILNEW="$(fd -t f -g '*' $MAILDIRNEW | wc -l)"
|
||||||
|
|
||||||
# Print count in i3/sway bar format
|
# Print count in i3/sway bar format
|
||||||
echo $MAILNEW
|
if [ $MAILNEW -ge 1 ]
|
||||||
echo $MAILNEW
|
then
|
||||||
[ ${MAILNEW} -ge 1 ] && exit 33
|
echo $MAILNEW
|
||||||
|
fi
|
||||||
exit 0
|
|
||||||
|
|
|
||||||
13
timewmenu
13
timewmenu
|
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
set -e
|
|
||||||
shopt -s nullglob globstar
|
|
||||||
|
|
||||||
# Present menu to select tag
|
|
||||||
tag=$(timew tags | tail +4 | cut -d " " -f 1 | bemenu $@)
|
|
||||||
tag=$(echo "${tag%-*}" | xargs echo -n)
|
|
||||||
|
|
||||||
# Start timetracking
|
|
||||||
output=$(timew start "$tag")
|
|
||||||
|
|
||||||
# Send notification
|
|
||||||
notify-send -t 5000 "timew" "${output}"
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue