blob: db08327f6ce2e54460e7a956987b8cbd72a399b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/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|<span color='$(xrdb -get color1)'>|;s|..0m|</span>|")"
appointments="$(calcurse -d1 \
--format-apt "• <i>%S - %E</i>\n <span foreground='$(xrdb -get color7)'>%m</span>\n" \
--format-event "• <span foreground='$(xrdb -get color15)'>%m</span>\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')"
|