summaryrefslogtreecommitdiff
path: root/accounts/gkleen@skadhi/shell/quickshell
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@skadhi/shell/quickshell')
-rw-r--r--accounts/gkleen@skadhi/shell/quickshell/Lockscreen.qml2
-rw-r--r--accounts/gkleen@skadhi/shell/quickshell/NiriIdle.qml2
-rw-r--r--accounts/gkleen@skadhi/shell/quickshell/UnixIPC.qml2
3 files changed, 4 insertions, 2 deletions
diff --git a/accounts/gkleen@skadhi/shell/quickshell/Lockscreen.qml b/accounts/gkleen@skadhi/shell/quickshell/Lockscreen.qml
index 0b4a68b2..373692df 100644
--- a/accounts/gkleen@skadhi/shell/quickshell/Lockscreen.qml
+++ b/accounts/gkleen@skadhi/shell/quickshell/Lockscreen.qml
@@ -33,7 +33,7 @@ Scope {
33 33
34 Connections { 34 Connections {
35 target: Custom.Systemd 35 target: Custom.Systemd
36 function onSleep(before: bool) { 36 function onPrepareForSleep(before: bool) {
37 console.log(`received prepare for sleep ${before}`); 37 console.log(`received prepare for sleep ${before}`);
38 if (before) { 38 if (before) {
39 lock.locked = true; 39 lock.locked = true;
diff --git a/accounts/gkleen@skadhi/shell/quickshell/NiriIdle.qml b/accounts/gkleen@skadhi/shell/quickshell/NiriIdle.qml
index beff205c..fb1cfa4d 100644
--- a/accounts/gkleen@skadhi/shell/quickshell/NiriIdle.qml
+++ b/accounts/gkleen@skadhi/shell/quickshell/NiriIdle.qml
@@ -22,7 +22,7 @@ Scope {
22 } 22 }
23 Connections { 23 Connections {
24 target: Custom.Systemd 24 target: Custom.Systemd
25 function onSleep(before: bool) { 25 function onPrepareForSleep(before: bool) {
26 if (!before) 26 if (!before)
27 NiriService.sendCommand({ "Action": { "PowerOnMonitors": {} } }, _ => {}); 27 NiriService.sendCommand({ "Action": { "PowerOnMonitors": {} } }, _ => {});
28 } 28 }
diff --git a/accounts/gkleen@skadhi/shell/quickshell/UnixIPC.qml b/accounts/gkleen@skadhi/shell/quickshell/UnixIPC.qml
index 3d950031..483a60c6 100644
--- a/accounts/gkleen@skadhi/shell/quickshell/UnixIPC.qml
+++ b/accounts/gkleen@skadhi/shell/quickshell/UnixIPC.qml
@@ -31,6 +31,8 @@ Scope {
31 root.onCommandBrightness(command.Brightness); 31 root.onCommandBrightness(command.Brightness);
32 else if (command.LockSession) 32 else if (command.LockSession)
33 Custom.Systemd.lockSession(); 33 Custom.Systemd.lockSession();
34 else if (command.Sleep)
35 Custom.Systemd.sleep();
34 else if (command.Suspend) 36 else if (command.Suspend)
35 Custom.Systemd.suspend(); 37 Custom.Systemd.suspend();
36 else if (command.Hibernate) 38 else if (command.Hibernate)