aboutsummaryrefslogtreecommitdiff
path: root/.config/systemd/user/xss-lock.service
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2024-04-06 08:59:22 +0200
committerPatrick Spek <p.spek@tyil.nl>2024-04-06 08:59:22 +0200
commit3c9c6a6cd4284dbf10618bc82a0f13ad2e75d76f (patch)
tree5b61183212cdb62cebe98f6123e9d318605a3873 /.config/systemd/user/xss-lock.service
parentb4f12dd9768b9a453bfd00c374ebb4feb41535e4 (diff)
Update dotfiles
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