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";