diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-28 19:48:51 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-28 19:48:51 +0100 |
commit | bdf77e48d53fd1a6ba366ac8f8ea9489da24a784 (patch) | |
tree | 4ced916bc408063c61b28783cf515c4e14a8ddba /accounts/gkleen@sif/niri/waybar.nix | |
parent | 279b71de5c9c350e44d6033a1f13dcdc13ffdc3d (diff) | |
download | nixos-flakes.tar nixos-flakes.tar.gz nixos-flakes.tar.bz2 nixos-flakes.tar.xz nixos-flakes.zip |
...flakes
Diffstat (limited to 'accounts/gkleen@sif/niri/waybar.nix')
-rw-r--r-- | accounts/gkleen@sif/niri/waybar.nix | 12 |
1 files changed, 10 insertions, 2 deletions
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 { | |||
122 | }; | 122 | }; |
123 | "custom/worktime" = { | 123 | "custom/worktime" = { |
124 | interval = 60; | 124 | interval = 60; |
125 | exec = lib.getExe pkgs.worktime; | 125 | exec = "${lib.getExe pkgs.worktime} time --waybar"; |
126 | return-type = "json"; | ||
126 | tooltip = false; | 127 | tooltip = false; |
127 | }; | 128 | }; |
128 | "custom/worktime-today" = { | 129 | "custom/worktime-today" = { |
129 | interval = 60; | 130 | interval = 60; |
130 | exec = "${lib.getExe pkgs.worktime} today"; | 131 | exec = "${lib.getExe pkgs.worktime} today --waybar"; |
132 | return-type = "json"; | ||
131 | tooltip = false; | 133 | tooltip = false; |
132 | }; | 134 | }; |
133 | "niri/workspaces" = { | 135 | "niri/workspaces" = { |
@@ -323,6 +325,12 @@ in { | |||
323 | #idle_inhibitor.activated { | 325 | #idle_inhibitor.activated { |
324 | color: @white; | 326 | color: @white; |
325 | } | 327 | } |
328 | #custom-worktime.running, #custom-worktime-today.running { | ||
329 | color: @white; | ||
330 | } | ||
331 | #custom-worktime.over, #custom-worktime-today.over { | ||
332 | color: @orange; | ||
333 | } | ||
326 | 334 | ||
327 | #idle_inhibitor { | 335 | #idle_inhibitor { |
328 | padding-top: 1px; | 336 | padding-top: 1px; |