Compare commits

..

No commits in common. "f586eaa8a2f91fbea43243b833c629e695a2f136" and "00872dfed205d9e4d428edf70d5c9a5b5a4ffa31" have entirely different histories.

3 changed files with 30 additions and 6 deletions

9
evolution-nvim.sh Executable file
View file

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

View file

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

13
timewmenu Executable file
View file

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