From 62b2834fb25f18f5b9440569466fd5f2e2ad3e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Wed, 13 Mar 2024 11:30:01 +0100 Subject: [PATCH] 204 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * --- modules/home-manager/sway.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/home-manager/sway.nix b/modules/home-manager/sway.nix index 9f1ff09..bffe6af 100644 --- a/modules/home-manager/sway.nix +++ b/modules/home-manager/sway.nix @@ -26,9 +26,9 @@ text = '' #!${pkgs.bash}/bin/bash if [ "$(gsettings get ${schema} ${key})" == "true" ]; then - echo 󰌌\nenabled\n + echo {"text": "󰌌", "tooltip": "enabled", "percentage": 100 } else - echo 󰌐\ndisabled\n + echo {"text": "󰌐", "tooltip": "disabled", "percentage": 0 } fi ''; }; @@ -299,6 +299,7 @@ in { "custom/squeekboard" = { format = "{}"; exec = "${squeekboard_format}/bin/squeekboard_format"; + return-type = "json"; exec-on-event = true; interval = "once"; on-click = "${squeekboard_toggle}/bin/squeekboard_toggle";