diff options
Diffstat (limited to '.config/waybar/modules/timetracked.sh')
| -rwxr-xr-x | .config/waybar/modules/timetracked.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/.config/waybar/modules/timetracked.sh b/.config/waybar/modules/timetracked.sh deleted file mode 100755 index 4e384bf..0000000 --- a/.config/waybar/modules/timetracked.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -set -e -[ -n "$DEBUG" ] && set -x - -if ! command -v timetrace >/dev/null 2>&1; then - exit 0 -fi - -case "$1" in -on-click) - timetrace status >/dev/null && timetrace stop - exit 0 - ;; - -*) ;; -esac - -while true; do - timetrace status -o json | - jq -c 'if .project == "---" then {} else { text: (["▶", .trackedTimeToday] | join(" ")), class: "timetracked", alt: "timetracked" } end' 2>/dev/null - sleep 30 -done |