diff --git a/.config/systemd/user/sleep-i3lock@.service b/.config/systemd/user/sleep-i3lock@.service new file mode 100644 index 0000000..66dffaf --- /dev/null +++ b/.config/systemd/user/sleep-i3lock@.service @@ -0,0 +1,10 @@ +[Unit] +Description=Lock X session using i3lock + +[Service] +User=%i +Environment=DISPLAY=:0 +ExecStart=sh -c '~/.config/i3/lock.sh' + +[Install] +WantedBy=sleep.target