mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 12:10:42 +00:00
Inhibit swaync when session is locked
This commit is contained in:
parent
c8d1e94c0f
commit
ffd352074f
5 changed files with 29 additions and 6 deletions
|
@ -0,0 +1 @@
|
|||
/home/itsdrike/.config/systemd/user/swaync-inhibit-lock.service
|
11
home/.config/systemd/user/swaync-inhibit-lock.service
Normal file
11
home/.config/systemd/user/swaync-inhibit-lock.service
Normal 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
|
11
home/.config/systemd/user/swaync-inhibit-unlock.service
Normal file
11
home/.config/systemd/user/swaync-inhibit-unlock.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Uninhibit swaync notifications on unlock event
|
||||
Requisite=swaync.service
|
||||
After=unlock.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/swaync-client --inhibitor-remove screen-locker
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
||||
WantedBy=unlock.target
|
|
@ -0,0 +1 @@
|
|||
/home/itsdrike/.config/systemd/user/swaync-inhibit-unlock.service
|
Loading…
Add table
Add a link
Reference in a new issue