From 6b62c5743d95c28d0a69159efea533a200b3d1c9 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Wed, 4 Dec 2019 17:46:36 +0100 Subject: Created i3blocks calcurse script. --- i3blocks/i3calcurse.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 i3blocks/i3calcurse.sh (limited to 'i3blocks') 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 '^ \*' -- cgit v1.2.1