summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Lockscreen.qml')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/Lockscreen.qml11
1 files changed, 8 insertions, 3 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml
index 124f441b..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,8 +94,7 @@ Scope {
88 GpgAgent.reloadAgent(); 94 GpgAgent.reloadAgent();
89 } 95 }
90 } 96 }
91 97 Component.onCompleted: { (_ => {})(MprisProxy.players); }
92 Binding { target: MprisProxy; }
93 98
94 onSecureStateChanged: Custom.Systemd.lockedHint = lock.secure 99 onSecureStateChanged: Custom.Systemd.lockedHint = lock.secure
95 100