summaryrefslogtreecommitdiff
path: root/mut/bin/sb-clock
diff options
context:
space:
mode:
authorMike Vink <ivi@vinkies.net>2024-01-16 21:04:32 +0100
committerMike Vink <ivi@vinkies.net>2024-01-16 21:04:32 +0100
commit902e9a96aa3ef853139c5af402d2f5bd83b96a38 (patch)
tree4957200b12cfe46068082d1ba2e90aedfa1cc217 /mut/bin/sb-clock
parentc74aa1133981264f54eb0bdf5533d3164a4828fb (diff)
sync calendars
Diffstat (limited to 'mut/bin/sb-clock')
-rwxr-xr-xmut/bin/sb-clock5
1 files changed, 3 insertions, 2 deletions
diff --git a/mut/bin/sb-clock b/mut/bin/sb-clock
index 7649523..c079a58 100755
--- a/mut/bin/sb-clock
+++ b/mut/bin/sb-clock
@@ -19,8 +19,9 @@ case "$clock" in
esac
case $BLOCK_BUTTON in
- 1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"cyan\">/;s|..0m|</span></b>|")" && notify-send "Appointments" "$(calcurse -d3)" ;;
- 2) setsid -f "$TERMINAL" -e calcurse ;;
+ 1) notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"cyan\">/;s|..0m|</span></b>|")" && notify-send -t 100000 "$(khal list now 14d -f "{calendar-color} {start-time} {title} {status} {description}
+" | sed "s/..7m/<b><span color=\"cyan\">/;s|..0m|</span></b>|")" ;;
+ 2) setsid -f "$TERMINAL" -e khal interactive ;;
3) notify-send "📅 Time/date module" "\- Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\`
- Middle click opens calcurse if installed" ;;
6) "$TERMINAL" -e "$EDITOR" "$0" ;;