From c2fbc4d1717864a0055592e0b73d71c010e8686c Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Fri, 8 Nov 2024 20:48:58 +0000 Subject: Initial commit --- .config/eww/scripts/calendar.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 .config/eww/scripts/calendar.sh (limited to '.config/eww/scripts/calendar.sh') diff --git a/.config/eww/scripts/calendar.sh b/.config/eww/scripts/calendar.sh new file mode 100755 index 0000000..a9e3502 --- /dev/null +++ b/.config/eww/scripts/calendar.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +# Calendar script + +function ShowCalendar() { + fyi -a "Calendar" --hint string:x-canonical-private-synchronous:calendar " 📅 Calendar" "$(cal | sed "s/\<$(date +%-d)\>/$(date +%-d)<\/b><\/span>/")" +} + +function EditCalendar() { + echo +} + +case "$1" in + show) + ShowCalendar + ;; + + edit) + EditCalendar + ;; + + *) + echo $"Usage: ${0##*/} {show|edit}" + exit 1 + +esac -- cgit v1.2.3