From b86bc722d874ee93a49f0b3b8fda4a90a4965746 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sat, 18 Jun 2022 21:22:34 +0530 Subject: /etc/ and /grub/ files for install script --- etc/systemd/system/betterlockscreen@.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 etc/systemd/system/betterlockscreen@.service (limited to 'etc/systemd/system/betterlockscreen@.service') 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 -- cgit v1.2.3