#!/bin/sh
# Display the current time in HH:MM:SS.
notify() {
notify-send --icon=office-calendar-symbolic \
--hint=string:x-canonical-private-synchronous:"$1" "$@"
}
case $BLOCK_BUTTON in
3)
notify "This Month" "$(cal --color=always |
sed "s|..7m||;s|..0m||")"
appointments="$(calcurse -d1 \
--format-apt "• %S - %E\n %m\n" \
--format-event "• %m\n")"
[ -n "$appointments" ] && notify "Appointments" "$appointments"
;;
2) setsid --fork terminal -e calcurse ;;
1) dunstify "This Month" "$(cal --color=always)";;
esac
. sb-theme
display " $(date '+%a %d %b %T')"