diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2026-09-27 12:37:52 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2026-09-27 12:37:52 +0200 |
| commit | badf7aba844967c5d13e01079c12df758715167a (patch) | |
| tree | 3c0872b667a64a82caf7bab3d2503c9f7a6444b9 /accounts/gkleen@skadhi/shell/quickshell | |
| parent | 74d97f767ac4d6f05ce95e388460a49c5190afc3 (diff) | |
| download | nixos-badf7aba844967c5d13e01079c12df758715167a.tar nixos-badf7aba844967c5d13e01079c12df758715167a.tar.gz nixos-badf7aba844967c5d13e01079c12df758715167a.tar.bz2 nixos-badf7aba844967c5d13e01079c12df758715167a.tar.xz nixos-badf7aba844967c5d13e01079c12df758715167a.zip | |
...flakes
Diffstat (limited to 'accounts/gkleen@skadhi/shell/quickshell')
| -rw-r--r-- | accounts/gkleen@skadhi/shell/quickshell/Lockscreen.qml | 2 | ||||
| -rw-r--r-- | accounts/gkleen@skadhi/shell/quickshell/NiriIdle.qml | 2 | ||||
| -rw-r--r-- | accounts/gkleen@skadhi/shell/quickshell/UnixIPC.qml | 2 |
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) |
