diff --git a/evolution-nvim.sh b/evolution-nvim.sh new file mode 100755 index 0000000..c218560 --- /dev/null +++ b/evolution-nvim.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ $# -ge 2 ]; then + CMD="nvim $2 -c \"$1\"" +else + CMD="nvim $1" +fi + +exec alacritty -t Evolution -e ${CMD} diff --git a/mail-count.sh b/mail-count.sh index 2823d58..4ff49d1 100755 --- a/mail-count.sh +++ b/mail-count.sh @@ -1,15 +1,17 @@ #!/bin/sh -# Count the number of unread emails and return the count in the i3/sway bar format. +# Count the number of unread emails and return the count in the i3/sway bar +# format. # Settings MAILDIRNEW="$HOME/Dokumente/eMails/*/INBOX/new/" # Count new mails -MAILNEW="$(fd -t f -g '*' $MAILDIRNEW | wc -l)" +MAILNEW="$(find $MAILDIRNEW -type f | wc -l)" # Print count in i3/sway bar format -if [ $MAILNEW -ge 1 ] -then - echo $MAILNEW -fi +echo $MAILNEW +echo $MAILNEW +[ ${MAILNEW} -ge 1 ] && exit 33 + +exit 0 diff --git a/timewmenu b/timewmenu new file mode 100755 index 0000000..ebe9e9a --- /dev/null +++ b/timewmenu @@ -0,0 +1,13 @@ +#!/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}"