diff --git a/.config/i3/suspend@.service b/.config/i3/suspend@.service new file mode 100644 index 0000000..959e525 --- /dev/null +++ b/.config/i3/suspend@.service @@ -0,0 +1,12 @@ +[Unit] +Description=User suspend actions +Before=sleep.target + +[Service] +User=%I +Type=forking +Environment=DISPLAY=:0 +ExecStart=/home/adam/.config/i3/lock.sh lock + +[Install] +WantedBy=sleep.target