Merge pull request #738 from bokicoder/patch-1

SessionMenu: add hibernate option
This commit is contained in:
Lysec
2025-11-13 15:23:29 +01:00
committed by GitHub
17 changed files with 86 additions and 2 deletions
@@ -342,6 +342,11 @@ Singleton {
Quickshell.execDetached(["sh", "-c", "systemctl suspend || loginctl suspend"])
}
function hibernate() {
Logger.i("Compositor", "Hibernate requested")
Quickshell.execDetached(["sh", "-c", "systemctl hibernate || loginctl hibernate"])
}
function lockAndSuspend() {
Logger.i("Compositor", "Lock and suspend requested")
try {