From 896c311feb10e947c727a888308dbc7eb71d1ec2 Mon Sep 17 00:00:00 2001 From: NPScript Date: Sat, 9 Apr 2022 21:22:20 +0200 Subject: init commit --- .local/bin/clock | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .local/bin/clock (limited to '.local/bin/clock') diff --git a/.local/bin/clock b/.local/bin/clock new file mode 100755 index 0000000..a4eb334 --- /dev/null +++ b/.local/bin/clock @@ -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 "+%H:%M %d %b %Y" -- cgit v1.2.3-70-g09d2