From 938e47b3b0d888a89e18dbaa40410ef96518a69d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 28 Jan 2025 21:11:46 +0100 Subject: ... --- accounts/gkleen@sif/niri/waybar.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'accounts/gkleen@sif/niri/waybar.nix') 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 { text = f"{icon}" # noqa: E501 if is_silent: text = f"{text}" - print(json.dumps({'text': text}, separators=(',', ':')), flush=True) # noqa: E501 + print(json.dumps({'text': text, 'tooltip': ', '.join(modes)}, separators=(',', ':')), flush=True) # noqa: E501 async def on_properties_changed(interface_name, changed_properties, invalidated_properties): # noqa: E501 if "Modes" not in invalidated_properties: @@ -124,13 +124,11 @@ in { interval = 60; exec = "${lib.getExe pkgs.worktime} time --waybar"; return-type = "json"; - tooltip = false; }; "custom/worktime-today" = { interval = 60; exec = "${lib.getExe pkgs.worktime} today --waybar"; return-type = "json"; - tooltip = false; }; "niri/workspaces" = { ignore = ["eff" "pwctl" "kpxc" "bmgr" "edit" "term"]; -- cgit v1.2.3