diff options
author | Philip Wittamore <philip@wittamore.com> | 2025-06-03 19:56:25 +0200 |
---|---|---|
committer | Philip Wittamore <philip@wittamore.com> | 2025-06-03 19:56:25 +0200 |
commit | f0b527f61e251a879a179ff4fef16baaa486c047 (patch) | |
tree | 643a5717fcf243c5430cf8b0609d23bd2fa41b59 /sb-date | |
parent | 95a142be5215939fc6b5be643e4fa44650415e2c (diff) | |
download | scripts-f0b527f61e251a879a179ff4fef16baaa486c047.tar.gz scripts-f0b527f61e251a879a179ff4fef16baaa486c047.tar.bz2 scripts-f0b527f61e251a879a179ff4fef16baaa486c047.zip |
update
Diffstat (limited to 'sb-date')
-rwxr-xr-x | sb-date | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/sb-date b/sb-date deleted file mode 100755 index db08327..0000000 --- a/sb-date +++ /dev/null @@ -1,23 +0,0 @@ -#!/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')" |