From fa9c7b9561f9a7859f49a396c602b4de4e2fae0d Mon Sep 17 00:00:00 2001 From: ediblerope Date: Thu, 14 May 2026 10:21:23 +0100 Subject: [PATCH] --- settings/hyprland.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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;