diff --git a/Perso/systemd_timers/sleepLocki3.service b/Perso/systemd_timers/sleepLocki3.service new file mode 100644 index 0000000..c2c7f0c --- /dev/null +++ b/Perso/systemd_timers/sleepLocki3.service @@ -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