This commit is contained in:
parent
678eeccac5
commit
fa9c7b9561
1 changed files with 8 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue