From: Siraaj Khandkar Date: Fri, 7 Jun 2019 02:40:46 +0000 (-0400) Subject: Add systemd xscreensaver.service X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=201141404a46ff322acbc4856a32311923f58a29;p=khome.git Add systemd xscreensaver.service --- diff --git a/etc/systemd/system/xscreensaver.service b/etc/systemd/system/xscreensaver.service new file mode 100644 index 0000000..0aa0754 --- /dev/null +++ b/etc/systemd/system/xscreensaver.service @@ -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