mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Merge pull request #738 from bokicoder/patch-1
SessionMenu: add hibernate option
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user