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
4
AGENTS.md
Normal file
4
AGENTS.md
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Repository working preference
|
||||||
|
|
||||||
|
- After completing changes to this repository, commit and push them to `origin` before finishing. The user builds from the remote repository, not the local working tree.
|
||||||
|
- If a push fails, report the failure and leave the commit in place for a retry.
|
||||||
|
|
@ -13,6 +13,11 @@ in
|
||||||
xwayland.enable = true;
|
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 = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# xdg-desktop-portal-hyprland is registered automatically by
|
# xdg-desktop-portal-hyprland is registered automatically by
|
||||||
|
|
@ -474,6 +479,7 @@ in
|
||||||
|
|
||||||
-- Power menu (quickshell launcher in power mode)
|
-- 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(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
|
-- Move windows
|
||||||
hl.bind(mod .. " + SHIFT + left", hl.dsp.window.move({ direction = "left" }))
|
hl.bind(mod .. " + SHIFT + left", hl.dsp.window.move({ direction = "left" }))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue