From 201141404a46ff322acbc4856a32311923f58a29 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Thu, 6 Jun 2019 22:40:46 -0400 Subject: [PATCH] Add systemd xscreensaver.service --- etc/systemd/system/xscreensaver.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 etc/systemd/system/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 -- 2.20.1