mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 04:00:42 +00:00
Rewrite the hyprlock (systemd-lock-handler) service
This commit is contained in:
parent
ffd352074f
commit
4b37fb8fb3
5 changed files with 18 additions and 17 deletions
17
home/.config/systemd/user/hyprlock.service
Normal file
17
home/.config/systemd/user/hyprlock.service
Normal file
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=Run hyprlock screenlocker on lock dbus event (using systemd-lock-handler)
|
||||
Requisite=wm-ready.target
|
||||
# if hyprlock exists cleanly, enter a 'unlock' target
|
||||
OnSuccess=unlock.target
|
||||
# When lock.target is stopped, stop this unit too
|
||||
PartOf=lock.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/hyprlock
|
||||
StandardOutput=journal
|
||||
ExecStop=/bin/kill -s SIGUSR1 $MAINPID
|
||||
ExecStopPost=/bin/loginctl unlock-session
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=lock.target
|
Loading…
Add table
Add a link
Reference in a new issue