Migrate swaylock to hyprlock

This commit is contained in:
ItsDrike 2024-03-10 04:38:53 +01:00
parent 9bb205b74d
commit 118cd7f676
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
5 changed files with 175 additions and 52 deletions

View file

@ -0,0 +1,15 @@
[Unit]
Description=Run hyprlock screenlocker on lock dbus event (using systemd-lock-handler)
# if swaylock exists cleanly, unlock this session
OnSuccess=unlock.target
# When lock.target is stopped, stop this too
PartOf=lock.target
# Delay lock.target until this service is ready
After=lock.target
[Service]
ExecStart=/usr/bin/stdbuf -oL /usr/bin/hyprlock
Restart=on-failure
[Install]
WantedBy=lock.target