diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..45109fb --- /dev/null +++ b/AGENTS.md @@ -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. diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 8754fd5..e9d1cdf 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -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" }))