From fd953c5191677355b789ea636f61de5a83fbf38c Mon Sep 17 00:00:00 2001 From: awy Date: Tue, 27 Aug 2024 17:36:26 +0300 Subject: stuff --- .local/bin/statusbar/sb-clock | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to '.local/bin/statusbar/sb-clock') diff --git a/.local/bin/statusbar/sb-clock b/.local/bin/statusbar/sb-clock index bdf3590..67ad409 100755 --- a/.local/bin/statusbar/sb-clock +++ b/.local/bin/statusbar/sb-clock @@ -18,4 +18,14 @@ case "$clock" in "12") icon="🕛" ;; esac -date "+%b %d (%a) $icon %H:%M" +if [ ! -n "$1" ]; then + date "+%b %d (%a) $icon %H:%M" +else + if [ "$1" -eq 1 ]; then + notify-send "This Month" "$(cal | sed "s/\<$(date +'%e'|tr -d ' ')\>/&<\/span><\/b>/")" && notify-send "Appointments" "$(calcurse -d3)" + elif [ "$1" -eq 3 ]; then + 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" + fi +fi + -- cgit v1.2.3