diff --git a/evolution-nvim.sh b/evolution-nvim.sh deleted file mode 100755 index c218560..0000000 --- a/evolution-nvim.sh +++ /dev/null @@ -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} diff --git a/mail-count.sh b/mail-count.sh index 4ff49d1..2823d58 100755 --- a/mail-count.sh +++ b/mail-count.sh @@ -1,17 +1,15 @@ #!/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="$(find $MAILDIRNEW -type f | wc -l)" +MAILNEW="$(fd -t f -g '*' $MAILDIRNEW | wc -l)" # Print count in i3/sway bar format -echo $MAILNEW -echo $MAILNEW -[ ${MAILNEW} -ge 1 ] && exit 33 - -exit 0 +if [ $MAILNEW -ge 1 ] +then + echo $MAILNEW +fi diff --git a/timewmenu b/timewmenu deleted file mode 100755 index ebe9e9a..0000000 --- a/timewmenu +++ /dev/null @@ -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}"