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:
2 files changed
+16
-8
No files matched your search
@@ -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")''
|
||||
)
|
||||
];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user