pinwheel: Hibernate instead of suspend when the battery is low

Adds a swap file to hold the hibernation image. The low battery timer and
UPower's critical action now hibernate, and SUPER+SHIFT+x uses
`suspend-then-hibernate` so a suspended laptop hibernates before the
battery runs out.
This commit is contained in:
Alexander Heldt committed 2026-11-15 15:08:35 +01:00
1 parent f31ac25f3d
commit f4b0269b08
2 files changed
+16 -8

No files matched your search

+1 -1
View File
@@ -93,7 +93,7 @@ in
_args = [
"SUPER + SHIFT + x"
(lib.generators.mkLuaInline
''hl.dsp.exec_cmd("${pause-music}; ${pkgs.hyprlock}/bin/hyprlock & sleep 0.5; systemctl suspend")''
''hl.dsp.exec_cmd("${pause-music}; ${pkgs.hyprlock}/bin/hyprlock & sleep 0.5; systemctl suspend-then-hibernate")''
)
];
}