From dfcc303e7cc284a45f55bae81ed888dc256432b8 Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 11 Jun 2023 07:49:11 -0400 Subject: Consolidated status bar scripts for dwmstatus --- .local/bin/statusbar/bar-calcurse | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 .local/bin/statusbar/bar-calcurse (limited to '.local/bin/statusbar/bar-calcurse') diff --git a/.local/bin/statusbar/bar-calcurse b/.local/bin/statusbar/bar-calcurse deleted file mode 100755 index dca82f3..0000000 --- a/.local/bin/statusbar/bar-calcurse +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -#i3blocks calcurse module - -case $BUTTON in - 3)notify-send -t 5000 "$(calcurse -D ~/.config/calcurse/ -c ~/.config/calcurse/apts -a)";; - 1)notify-send -t 20000 "$(calcurse -D ~/.config/calcurse/ -c ~/.config/calcurse/apts -r7)";; - 2)notify-send -t 5000 "$(calcurse -D ~/.config/calcurse/ -t)" -esac - -name="$(calcurse -D ~/.config/calcurse/ -c ~/.config/calcurse/apts -n | grep "\[" | sed "s/\s*\[/\[/" | cut -d ' ' -f 2-)" -[ "$name" = "" ] && echo "Nothing Scheduled" && exit 0 -time="$(grep "$name" ~/.config/calcurse/apts | head -1 | cut -d ' ' -f 3)" -[ ${time%%:*} -gt 12 ] && time="$((${time%%:*}-12)):${time##*:} PM" || time="$time AM" -echo "$name @ $time" -- cgit v1.2.3