From b417b248c874cba7ddf6ded78273df584a81931d Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Tue, 7 Oct 2025 21:04:07 +0100 Subject: Initial commit --- .config/polybar/scripts/calendar.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 .config/polybar/scripts/calendar.sh (limited to '.config/polybar/scripts/calendar.sh') diff --git a/.config/polybar/scripts/calendar.sh b/.config/polybar/scripts/calendar.sh new file mode 100755 index 0000000..08f84e5 --- /dev/null +++ b/.config/polybar/scripts/calendar.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +# Calendar script + +ShowCalendar() { + notify-send -a "Calendar" --hint string:x-canonical-private-synchronous:calendar " Calendar" "$(cal | sed "s/\<$(date +%d | sed 's/^0*//')\>/$(date +%d | sed 's/^0*//')<\/b><\/big>/")" +} + +EditCalendar() { + echo +} + +case "$1" in + show) + ShowCalendar + ;; + + edit) + EditCalendar + ;; + + *) + echo $"Usage: ${0##*/} {show|edit}" + exit 1 + +esac -- cgit v1.2.3