From 95a142be5215939fc6b5be643e4fa44650415e2c Mon Sep 17 00:00:00 2001 From: Philip Wittamore Date: Mon, 2 Jun 2025 20:53:45 +0200 Subject: update --- sb-date | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 sb-date (limited to 'sb-date') diff --git a/sb-date b/sb-date new file mode 100755 index 0000000..db08327 --- /dev/null +++ b/sb-date @@ -0,0 +1,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||;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')" -- cgit v1.2.3