This commit is contained in:
ediblerope 2026-05-14 10:21:23 +01:00
parent 678eeccac5
commit fa9c7b9561

View file

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