aboutsummaryrefslogtreecommitdiff
path: root/.config/systemd/user/xss-lock.service
diff options
context:
space:
mode:
Diffstat (limited to '.config/systemd/user/xss-lock.service')
-rw-r--r--.config/systemd/user/xss-lock.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/systemd/user/xss-lock.service b/.config/systemd/user/xss-lock.service
new file mode 100644
index 0000000..7b059d6
--- /dev/null
+++ b/.config/systemd/user/xss-lock.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Start xss-lock
+PartOf=graphical-session.target
+
+[Service]
+Type=exec
+Environment=DISPLAY=:0
+ExecStart=/usr/bin/xss-lock -- i3lock -c '#000000' -n
+Restart=on-failure
+
+[Install]
+WantedBy=desktop-x11.target