Show power menu on power button press
This commit is contained in:
parent
91f182ff15
commit
2a7f45dbc0
2 changed files with 10 additions and 0 deletions
|
|
@ -13,6 +13,11 @@ in
|
|||
xwayland.enable = true;
|
||||
};
|
||||
|
||||
# Let Hyprland show the session menu for a short power-key press instead
|
||||
# of letting logind immediately shut the machine down. At the greeter or
|
||||
# on a TTY, the key simply does nothing.
|
||||
services.logind.settings.Login.HandlePowerKey = "ignore";
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
# xdg-desktop-portal-hyprland is registered automatically by
|
||||
|
|
@ -474,6 +479,7 @@ in
|
|||
|
||||
-- Power menu (quickshell launcher in power mode)
|
||||
hl.bind(mod .. " + L", hl.dsp.exec_cmd("${pkgs.quickshell}/bin/qs ipc call launcher powermenu"))
|
||||
hl.bind("XF86PowerOff", hl.dsp.exec_cmd("${pkgs.quickshell}/bin/qs ipc call launcher powermenu"))
|
||||
|
||||
-- Move windows
|
||||
hl.bind(mod .. " + SHIFT + left", hl.dsp.window.move({ direction = "left" }))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue