summary refs log tree commit diff
path: root/.config/waybar/modules/timetracked.sh
blob: 4963ea0eadb83327cd44c17037382ca97b19b702 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

set -e

while true; do
	timetrace status -o json |
		jq -c 'if .project == "---" then {} else { text: (["󰔛", .trackedTimeToday] | join(" ")), class: "timetracked", alt: "timetracked" } end'

	sleep 30
done