diff options
author | awy <awy@tutamail.com> | 2024-08-27 17:36:26 +0300 |
---|---|---|
committer | awy <awy@tutamail.com> | 2024-08-27 17:36:26 +0300 |
commit | fd953c5191677355b789ea636f61de5a83fbf38c (patch) | |
tree | 1d4c45e6ffa8590fe2511f4ca7f5f8374c5781b5 /.local/bin/statusbar/sb-clock | |
parent | 427dc591da83a94e352840c335ea41b96983e7e4 (diff) |
stuff
Diffstat (limited to '.local/bin/statusbar/sb-clock')
-rwxr-xr-x | .local/bin/statusbar/sb-clock | 12 |
1 files changed, 11 insertions, 1 deletions
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 ' ')\>/<b><span color='red'>&<\/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 + |