aboutsummaryrefslogtreecommitdiff
path: root/i3blocks/i3calcurse.sh
blob: b4544606ec39ce8c9fc0ae7dfaea5107f5ab38dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 '^ \*'