diff options
Diffstat (limited to '.config/waybar/modules/timetracked.sh')
| -rwxr-xr-x | .config/waybar/modules/timetracked.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/waybar/modules/timetracked.sh b/.config/waybar/modules/timetracked.sh index 52611a3..4e384bf 100755 --- a/.config/waybar/modules/timetracked.sh +++ b/.config/waybar/modules/timetracked.sh @@ -3,6 +3,10 @@ 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 |