diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-08 20:00:22 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-08 20:00:22 +0200 |
| commit | 8a551339cbfaf106ac7d6f1ca5230196be539167 (patch) | |
| tree | 20dd3cb9f12dd94fa22fcd2d866c3cf586f8931a /accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | |
| parent | 14d4d05acc235ab7033316d16530783c90e95faa (diff) | |
| download | nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar.gz nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar.bz2 nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar.xz nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.zip | |
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Lockscreen.qml')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml index cc82a275..8e739359 100644 --- a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml +++ b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | |||
| @@ -2,6 +2,9 @@ import Quickshell | |||
| 2 | import Quickshell.Wayland | 2 | import Quickshell.Wayland |
| 3 | import Quickshell.Io | 3 | import Quickshell.Io |
| 4 | import Quickshell.Services.Pam | 4 | import Quickshell.Services.Pam |
| 5 | import Quickshell.Services.Mpris | ||
| 6 | import Custom as Custom | ||
| 7 | import qs.Services | ||
| 5 | import QtQml | 8 | import QtQml |
| 6 | 9 | ||
| 7 | Scope { | 10 | Scope { |
| @@ -38,9 +41,19 @@ Scope { | |||
| 38 | WlSessionLock { | 41 | WlSessionLock { |
| 39 | id: lock | 42 | id: lock |
| 40 | 43 | ||
| 41 | onLockedChanged: { | 44 | onLockStateChanged: { |
| 42 | if (!locked && pam.active) | 45 | if (!locked && pam.active) |
| 43 | pam.abort(); | 46 | pam.abort(); |
| 47 | |||
| 48 | if (locked) { | ||
| 49 | Custom.KeePassXC.lockAllDatabases(); | ||
| 50 | Array.from(Mpris.players.values).forEach(player => { | ||
| 51 | if (player.canPause && player.isPlaying) | ||
| 52 | player.pause(); | ||
| 53 | }); | ||
| 54 | // Custom.Systemd.stopUserUnit("gpg-agent.service", "replace"); | ||
| 55 | GpgAgent.reloadAgent(); | ||
| 56 | } | ||
| 44 | } | 57 | } |
| 45 | 58 | ||
| 46 | WlSessionLockSurface { | 59 | WlSessionLockSurface { |
