aboutsummaryrefslogtreecommitdiff
path: root/.config/qtile/statusbar/calendar.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/qtile/statusbar/calendar.sh')
-rwxr-xr-x.config/qtile/statusbar/calendar.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/.config/qtile/statusbar/calendar.sh b/.config/qtile/statusbar/calendar.sh
new file mode 100755
index 0000000..71de700
--- /dev/null
+++ b/.config/qtile/statusbar/calendar.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# Calendar script
+
+function ShowCalendar() {
+ notify-send -i "calendar" " 📅 Calendar" "$(cal --color=always | sed "s/..7m/<b><span color=\"#fabd2f\">/;s/..27m/<\/span><\/b>/")" -r 124
+}
+
+function EditCalendar() {
+ echo
+}
+
+case "$1" in
+ show)
+ ShowCalendar
+ ;;
+
+ edit)
+ EditCalendar
+ ;;
+
+ *)
+ echo $"Usage: ${0##*/} {show|edit}"
+ exit 1
+
+esac