Inhibit swaync when session is locked

This commit is contained in:
ItsDrike 2024-12-22 03:58:13 +01:00
parent c8d1e94c0f
commit ffd352074f
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
5 changed files with 29 additions and 6 deletions

View file

@ -0,0 +1,11 @@
[Unit]
Description=Inhibit swaync notifications on lock dbus event (using systemd-lock-handler)
Requisite=swaync.service
Before=lock.target
[Service]
ExecStart=/usr/bin/swaync-client --inhibitor-add screen-locker
Type=oneshot
[Install]
WantedBy=lock.target