diff options
Diffstat (limited to 'i3blocks')
-rwxr-xr-x | i3blocks/i3calcurse.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/i3blocks/i3calcurse.sh b/i3blocks/i3calcurse.sh new file mode 100755 index 0000000..b454460 --- /dev/null +++ b/i3blocks/i3calcurse.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# i3calcurse.sh +# +# Shows number of appointments today and tomorrow + +days="2" # Days to take into account starting from and counting today + +case $BLOCK_BUTTON in + 1) dunstify -r "$(dunstifyIDs.sh "calcurse")" "Calendar" "$(calcurse -d"$days" | + sed 's/^[[:blank:]]*//g')";; +esac + +calcurse -d"$days" --format-apt " * %m\n" | grep -c '^ \*' |