mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-02-27 05:18:55 +00:00
18 lines
464 B
Desktop File
18 lines
464 B
Desktop File
[Unit]
|
|
Description=Run hyprlock screenlocker on lock dbus event (using systemd-lock-handler)
|
|
Requisite=graphical-session.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
|
|
ExecStopPost=/bin/loginctl unlock-session
|
|
Restart=on-failure
|
|
Slice=background-graphical.slice
|
|
|
|
[Install]
|
|
WantedBy=lock.target
|
|
|