blob: 52611a3a4e2fbc419332493b354cd388ce62a5a6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
set -e
[ -n "$DEBUG" ] && set -x
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
|