From 786f9c22fab19de866566de4c7933aef416a1462 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Wed, 11 Oct 2023 18:21:52 +0100 Subject: Switched to River --- .config/yambar/scripts/calendar.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 .config/yambar/scripts/calendar.sh (limited to '.config/yambar/scripts/calendar.sh') diff --git a/.config/yambar/scripts/calendar.sh b/.config/yambar/scripts/calendar.sh new file mode 100755 index 0000000..d066cf8 --- /dev/null +++ b/.config/yambar/scripts/calendar.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# Calendar script + +function ShowCalendar() { + dunstify -i "calendar" "  Calendar" "$(cal --color=always | sed "s/..7m//;s/..27m/<\/span><\/b>/")" -r 124 +} + +function EditCalendar() { + echo +} + +case "$1" in + show) + ShowCalendar + ;; + + edit) + EditCalendar + ;; + + *) + echo $"Usage: ${0##*/} {show|edit}" + exit 1 + +esac -- cgit v1.2.3