diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Lockscreen.qml')
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml index f983388c..996fd41b 100644 --- a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml +++ b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | |||
@@ -70,6 +70,12 @@ Scope { | |||
70 | mode: Custom.SystemdInhibitorParams.Delay | 70 | mode: Custom.SystemdInhibitorParams.Delay |
71 | } | 71 | } |
72 | 72 | ||
73 | Binding { | ||
74 | target: NotificationManager | ||
75 | property: "lockscreenActive" | ||
76 | value: lock.locked | ||
77 | } | ||
78 | |||
73 | WlSessionLock { | 79 | WlSessionLock { |
74 | id: lock | 80 | id: lock |
75 | 81 | ||
@@ -78,7 +84,7 @@ Scope { | |||
78 | pam.abort(); | 84 | pam.abort(); |
79 | 85 | ||
80 | if (locked) { | 86 | if (locked) { |
81 | NiriService.sendCommand({ "Action": { "PowerOffMonitors": {} } }); | 87 | NiriService.sendCommand({ "Action": { "PowerOffMonitors": {} } }, _ => {}); |
82 | Custom.KeePassXC.lockAllDatabases(); | 88 | Custom.KeePassXC.lockAllDatabases(); |
83 | Array.from(MprisProxy.players).forEach(player => { | 89 | Array.from(MprisProxy.players).forEach(player => { |
84 | if (player.canPause && player.isPlaying) | 90 | if (player.canPause && player.isPlaying) |
@@ -88,6 +94,7 @@ Scope { | |||
88 | GpgAgent.reloadAgent(); | 94 | GpgAgent.reloadAgent(); |
89 | } | 95 | } |
90 | } | 96 | } |
97 | Component.onCompleted: { (_ => {})(MprisProxy.players); } | ||
91 | 98 | ||
92 | onSecureStateChanged: Custom.Systemd.lockedHint = lock.secure | 99 | onSecureStateChanged: Custom.Systemd.lockedHint = lock.secure |
93 | 100 | ||