Add service file to run lock script on sleep
This commit is contained in:
parent
93d70d6295
commit
7216c895b3
1 changed files with 15 additions and 0 deletions
15
Perso/systemd_timers/sleepLocki3.service
Normal file
15
Perso/systemd_timers/sleepLocki3.service
Normal 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
|
Loading…
Add table
Reference in a new issue