diff --git a/modules/home-manager/sway.nix b/modules/home-manager/sway.nix index 51fedb5..acb5e50 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 '{ "text": "󰌐", "tooltip": "disabled", "percentage": 0 }' - else echo '{ "text": "󰌌", "tooltip": "enabled", "percentage": 100 }' + else + echo '{ "text": "󰌐", "tooltip": "disabled", "percentage": 0 }' fi ''; }; @@ -301,7 +301,7 @@ in { exec = "${squeekboard_format}/bin/squeekboard_format"; return-type = "json"; exec-on-event = true; - interval = "once"; + interval = 2; on-click = "${squeekboard_toggle}/bin/squeekboard_toggle"; };