Compare commits

...

2 commits

Author SHA1 Message Date
f586eaa8a2 Update “mail-count.sh” to use “fd” 2026-03-15 15:41:09 +01:00
d983206785 Remove unused scripts 2026-03-15 15:23:05 +01:00
3 changed files with 6 additions and 30 deletions

View file

@ -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}

View file

@ -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
if [ $MAILNEW -ge 1 ]
then
echo $MAILNEW echo $MAILNEW
echo $MAILNEW fi
[ ${MAILNEW} -ge 1 ] && exit 33
exit 0

View file

@ -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}"