From d983206785d7890db10c8c5b910c876607fa9624 Mon Sep 17 00:00:00 2001 From: Olli Date: Sun, 15 Mar 2026 15:23:05 +0100 Subject: [PATCH 1/2] Remove unused scripts --- evolution-nvim.sh | 9 --------- timewmenu | 13 ------------- 2 files changed, 22 deletions(-) delete mode 100755 evolution-nvim.sh delete mode 100755 timewmenu 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/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}" From f586eaa8a2f91fbea43243b833c629e695a2f136 Mon Sep 17 00:00:00 2001 From: Olli Date: Sun, 15 Mar 2026 15:41:09 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Update=20=E2=80=9Cmail-count.sh=E2=80=9D=20?= =?UTF-8?q?to=20use=20=E2=80=9Cfd=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mail-count.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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