From bdf77e48d53fd1a6ba366ac8f8ea9489da24a784 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 28 Jan 2025 19:48:51 +0100 Subject: ... --- accounts/gkleen@sif/niri/waybar.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'accounts/gkleen@sif') diff --git a/accounts/gkleen@sif/niri/waybar.nix b/accounts/gkleen@sif/niri/waybar.nix index c3820508..56a1b648 100644 --- a/accounts/gkleen@sif/niri/waybar.nix +++ b/accounts/gkleen@sif/niri/waybar.nix @@ -122,12 +122,14 @@ in { }; "custom/worktime" = { interval = 60; - exec = lib.getExe pkgs.worktime; + exec = "${lib.getExe pkgs.worktime} time --waybar"; + return-type = "json"; tooltip = false; }; "custom/worktime-today" = { interval = 60; - exec = "${lib.getExe pkgs.worktime} today"; + exec = "${lib.getExe pkgs.worktime} today --waybar"; + return-type = "json"; tooltip = false; }; "niri/workspaces" = { @@ -323,6 +325,12 @@ in { #idle_inhibitor.activated { color: @white; } + #custom-worktime.running, #custom-worktime-today.running { + color: @white; + } + #custom-worktime.over, #custom-worktime-today.over { + color: @orange; + } #idle_inhibitor { padding-top: 1px; -- cgit v1.2.3