diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Lockscreen.qml')
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml index 456baa98..f983388c 100644 --- a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml +++ b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | |||
@@ -70,11 +70,6 @@ Scope { | |||
70 | mode: Custom.SystemdInhibitorParams.Delay | 70 | mode: Custom.SystemdInhibitorParams.Delay |
71 | } | 71 | } |
72 | 72 | ||
73 | Scope { | ||
74 | id: mprisProxy | ||
75 | property list<var> players: Mpris.players.values | ||
76 | } | ||
77 | |||
78 | WlSessionLock { | 73 | WlSessionLock { |
79 | id: lock | 74 | id: lock |
80 | 75 | ||
@@ -85,7 +80,7 @@ Scope { | |||
85 | if (locked) { | 80 | if (locked) { |
86 | NiriService.sendCommand({ "Action": { "PowerOffMonitors": {} } }); | 81 | NiriService.sendCommand({ "Action": { "PowerOffMonitors": {} } }); |
87 | Custom.KeePassXC.lockAllDatabases(); | 82 | Custom.KeePassXC.lockAllDatabases(); |
88 | Array.from(mprisProxy.players).forEach(player => { | 83 | Array.from(MprisProxy.players).forEach(player => { |
89 | if (player.canPause && player.isPlaying) | 84 | if (player.canPause && player.isPlaying) |
90 | player.pause(); | 85 | player.pause(); |
91 | }); | 86 | }); |