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