diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 1ad34a7..d52b1c4 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -222,9 +222,13 @@ in "$mod, J, movefocus, d" # L freed for hyprlock — arrow keys still handle right-focus. - # Power menu (contains lock option) - "$mod, L, exec, ${pkgs.writeShellScript "power-menu" '' - choice=$(printf "Lock\nLogout\nReboot\nShutdown" \ + # Power menu — toggle: kills anyrun if already open + "$mod, L, exec, killall anyrun || ${pkgs.writeShellScript "power-menu" '' + choice=$(printf '%s\n' \ + $' Lock' \ + $' Logout' \ + $' Reboot' \ + $' Shutdown' \ | ${pkgs.anyrun}/bin/anyrun \ --plugins "${pkgs.anyrun}/lib/libstdin.so" \ --show-results-immediately true \ @@ -302,7 +306,7 @@ in plugins = [ "${pkgs.anyrun}/lib/libapplications.so" ]; x.fraction = 0.5; y.fraction = 0.5; - width.fraction = 0.2; + width.fraction = 0.1; height.absolute = 0; margin = 16; hideIcons = false;