Add systemd xscreensaver.service
authorSiraaj Khandkar <siraaj@khandkar.net>
Fri, 7 Jun 2019 02:40:46 +0000 (22:40 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Fri, 7 Jun 2019 02:40:46 +0000 (22:40 -0400)
etc/systemd/system/xscreensaver.service [new file with mode: 0644]

diff --git a/etc/systemd/system/xscreensaver.service b/etc/systemd/system/xscreensaver.service
new file mode 100644 (file)
index 0000000..0aa0754
--- /dev/null
@@ -0,0 +1,12 @@
+[Unit]
+Description=Lock X session using xscreensaver
+Before=sleep.target
+
+[Service]
+User=siraaj
+Type=forking
+Environment=DISPLAY=:0
+ExecStart=/usr/bin/xscreensaver-command -lock
+
+[Install]
+WantedBy=sleep.target
This page took 0.023572 seconds and 4 git commands to generate.