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 434df6bb42
commit 11e21c10da

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