From 83fca9b77fb5ff5cbf9e793e156b9d976a252961 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 9 Feb 2022 00:21:38 +0100 Subject: waybar: add timetrace module --- .config/waybar/modules/timetracked.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .config/waybar/modules/timetracked.sh (limited to '.config/waybar/modules') diff --git a/.config/waybar/modules/timetracked.sh b/.config/waybar/modules/timetracked.sh new file mode 100755 index 0000000..4963ea0 --- /dev/null +++ b/.config/waybar/modules/timetracked.sh @@ -0,0 +1,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 -- cgit 1.4.1