2024-12-22 04:37:44 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Run hyprlock screenlocker on lock dbus event (using systemd-lock-handler)
|
2025-02-24 22:27:49 +01:00
|
|
|
Requisite=graphical-session.target
|
2024-12-22 04:37:44 +01:00
|
|
|
# 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
|
|
|
|
ExecStopPost=/bin/loginctl unlock-session
|
|
|
|
Restart=on-failure
|
2025-02-24 22:27:49 +01:00
|
|
|
Slice=background-graphical.slice
|
2024-12-22 04:37:44 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=lock.target
|
2025-02-24 22:27:49 +01:00
|
|
|
|