Files
march/etc/systemd/system/suspend@.service
TuDatTr c273dbd525 etc/systemd/system/suspend@.service
Accidently left own home directory there, changed to $HOME
2020-05-23 15:02:48 +02:00

15 lines
229 B
Desktop File

[Unit]
Description=User suspend actions
Before=sleep.target
[Service]
User=%I
Type=forking
Environment=DISPLAY=:0
ExecStartPre=
ExecStart=$HOME/.scripts/i3lock.py
ExecStartPost=/usr/bin/sleep 1
[Install]
WantedBy=sleep.target