summaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-01-28 21:11:46 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2025-01-28 21:11:46 +0100
commit938e47b3b0d888a89e18dbaa40410ef96518a69d (patch)
tree8eb2d54b845084e7a854f8e10cc303ac7f86937a /accounts
parentbdf77e48d53fd1a6ba366ac8f8ea9489da24a784 (diff)
downloadnixos-938e47b3b0d888a89e18dbaa40410ef96518a69d.tar
nixos-938e47b3b0d888a89e18dbaa40410ef96518a69d.tar.gz
nixos-938e47b3b0d888a89e18dbaa40410ef96518a69d.tar.bz2
nixos-938e47b3b0d888a89e18dbaa40410ef96518a69d.tar.xz
nixos-938e47b3b0d888a89e18dbaa40410ef96518a69d.zip
...
Diffstat (limited to 'accounts')
-rw-r--r--accounts/gkleen@sif/niri/waybar.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/accounts/gkleen@sif/niri/waybar.nix b/accounts/gkleen@sif/niri/waybar.nix
index 56a1b648..3f1f8119 100644
--- a/accounts/gkleen@sif/niri/waybar.nix
+++ b/accounts/gkleen@sif/niri/waybar.nix
@@ -61,7 +61,7 @@ in {
61 text = f"<span font=\"Symbols Nerd Font Mono\" size=\"90%\">{icon}</span>" # noqa: E501 61 text = f"<span font=\"Symbols Nerd Font Mono\" size=\"90%\">{icon}</span>" # noqa: E501
62 if is_silent: 62 if is_silent:
63 text = f"<span color=\"#ffffff\">{text}</span>" 63 text = f"<span color=\"#ffffff\">{text}</span>"
64 print(json.dumps({'text': text}, separators=(',', ':')), flush=True) # noqa: E501 64 print(json.dumps({'text': text, 'tooltip': ', '.join(modes)}, separators=(',', ':')), flush=True) # noqa: E501
65 65
66 async def on_properties_changed(interface_name, changed_properties, invalidated_properties): # noqa: E501 66 async def on_properties_changed(interface_name, changed_properties, invalidated_properties): # noqa: E501
67 if "Modes" not in invalidated_properties: 67 if "Modes" not in invalidated_properties:
@@ -124,13 +124,11 @@ in {
124 interval = 60; 124 interval = 60;
125 exec = "${lib.getExe pkgs.worktime} time --waybar"; 125 exec = "${lib.getExe pkgs.worktime} time --waybar";
126 return-type = "json"; 126 return-type = "json";
127 tooltip = false;
128 }; 127 };
129 "custom/worktime-today" = { 128 "custom/worktime-today" = {
130 interval = 60; 129 interval = 60;
131 exec = "${lib.getExe pkgs.worktime} today --waybar"; 130 exec = "${lib.getExe pkgs.worktime} today --waybar";
132 return-type = "json"; 131 return-type = "json";
133 tooltip = false;
134 }; 132 };
135 "niri/workspaces" = { 133 "niri/workspaces" = {
136 ignore = ["eff" "pwctl" "kpxc" "bmgr" "edit" "term"]; 134 ignore = ["eff" "pwctl" "kpxc" "bmgr" "edit" "term"];