2022-11-20 01:48:19 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Run Swaylock 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]
|
|
|
|
# systemd will consider this service started when swaylock forks
|
|
|
|
# which swaylock will only do after it has locked the screen
|
|
|
|
Type=forking
|
|
|
|
ExecStart=/usr/bin/swaylock -fF
|
2023-03-26 11:03:56 +00:00
|
|
|
#ExecStart=/usr/bin/swaylock -fF --image /home/itsdrike/Pictures/Wallpapers/Categories/Extra/CommieGNULinux.png --indicator-x-position 300 --indicator-y-position 300
|
2022-11-20 01:48:19 +00:00
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=lock.target
|