summaryrefslogtreecommitdiff
path: root/etc/systemd/system/betterlockscreen@.service
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-06-18 21:22:34 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-06-18 21:22:34 +0530
commitb86bc722d874ee93a49f0b3b8fda4a90a4965746 (patch)
tree5d3a184ea1b4ecbcec2d2b48471173333fdf7efc /etc/systemd/system/betterlockscreen@.service
parente9290b24c939b75b1cbaf38b74f13e1fcd7dd115 (diff)
/etc/ and /grub/ files for install script
Diffstat (limited to 'etc/systemd/system/betterlockscreen@.service')
-rw-r--r--etc/systemd/system/betterlockscreen@.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/systemd/system/betterlockscreen@.service b/etc/systemd/system/betterlockscreen@.service
new file mode 100644
index 0000000..012789a
--- /dev/null
+++ b/etc/systemd/system/betterlockscreen@.service
@@ -0,0 +1,16 @@
+[Unit]
+Description = Lock screen when going to sleep/suspend
+Before=sleep.target
+Before=suspend.target
+
+[Service]
+User=%I
+Type=simple
+Environment=DISPLAY=:0
+ExecStart=/usr/bin/betterlockscreen --lock dimblur
+TimeoutSec=infinity
+ExecStartPost=/usr/bin/sleep 1
+
+[Install]
+WantedBy=sleep.target
+WantedBy=suspend.target