diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-12 14:21:21 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-12 14:21:21 +0200 |
commit | 43af16801fcbb7056a51ed5fd6539c74ff5c0379 (patch) | |
tree | bbf61e0d0df1cac84c441afaddcb2184dc450181 /accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | |
parent | da23e39c353e68fdc7c5839d78945e88352a7f92 (diff) | |
download | nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.tar nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.tar.gz nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.tar.bz2 nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.tar.xz nixos-43af16801fcbb7056a51ed5fd6539c74ff5c0379.zip |
...
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 | }); |