diff options
| author | Sam Chudnick <sam@chudnick.com> | 2023-06-11 07:49:11 -0400 |
|---|---|---|
| committer | Sam Chudnick <sam@chudnick.com> | 2023-06-11 07:49:11 -0400 |
| commit | dfcc303e7cc284a45f55bae81ed888dc256432b8 (patch) | |
| tree | b76835f53c0324c436c98e6838603c7bf838593f /.local/bin/statusbar/bar-calcurse | |
| parent | c833f67b5970dcd4f7e69ddabe4cb15300ef6749 (diff) | |
Consolidated status bar scripts for dwmstatus
Diffstat (limited to '.local/bin/statusbar/bar-calcurse')
| -rwxr-xr-x | .local/bin/statusbar/bar-calcurse | 15 |
1 files changed, 0 insertions, 15 deletions
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 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | #i3blocks calcurse module | ||
| 4 | |||
| 5 | case $BUTTON in | ||
| 6 | 3)notify-send -t 5000 "$(calcurse -D ~/.config/calcurse/ -c ~/.config/calcurse/apts -a)";; | ||
| 7 | 1)notify-send -t 20000 "$(calcurse -D ~/.config/calcurse/ -c ~/.config/calcurse/apts -r7)";; | ||
| 8 | 2)notify-send -t 5000 "$(calcurse -D ~/.config/calcurse/ -t)" | ||
| 9 | esac | ||
| 10 | |||
| 11 | name="$(calcurse -D ~/.config/calcurse/ -c ~/.config/calcurse/apts -n | grep "\[" | sed "s/\s*\[/\[/" | cut -d ' ' -f 2-)" | ||
| 12 | [ "$name" = "" ] && echo "Nothing Scheduled" && exit 0 | ||
| 13 | time="$(grep "$name" ~/.config/calcurse/apts | head -1 | cut -d ' ' -f 3)" | ||
| 14 | [ ${time%%:*} -gt 12 ] && time="$((${time%%:*}-12)):${time##*:} PM" || time="$time AM" | ||
| 15 | echo "$name @ $time" | ||
