From 079824553daaa1a709661de2d69026290067ed16 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 23 Aug 2021 22:39:00 +0100 Subject: [PATCH] Shorter option for clock --- .local/bin/statusbar/sb-time | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .local/bin/statusbar/sb-time diff --git a/.local/bin/statusbar/sb-time b/.local/bin/statusbar/sb-time new file mode 100755 index 0000000..de052ed --- /dev/null +++ b/.local/bin/statusbar/sb-time @@ -0,0 +1,11 @@ +#!/bin/sh + +case $BLOCK_BUTTON in + 1) notify-send "This Month" "$(cal --color=always | sed "s/..7m//;s/..27m/<\/span><\/b>/")" && notify-send "Appointments" "$(calcurse -d3)" ;; + 2) setsid -f "$TERMINAL" -e calcurse ;; + 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" ;; +esac + +date "+%I:%M%p"