1
0
Fork 0

Add service file to run lock script on sleep

This commit is contained in:
trotFunky 2020-07-05 16:36:06 +01:00
parent 93d70d6295
commit 7216c895b3

View file

@ -0,0 +1,15 @@
#/etc/systemd/system/
[Unit]
Description=Turning i3lock on before sleep
Before=sleep.target
[Service]
User=trotfunky
Type=forking
Environment=DISPLAY=:0
ExecStart=/home/trotfunky/lockscreen.sh
ExecStartPost=sleep 1
[Install]
WantedBy=sleep.target