From 13017938ec9782fa9ec8fbbac0ba6d4ff7bb117a Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Wed, 3 Aug 2016 17:12:13 +0100 Subject: [PATCH] Add sleep-on-lock, finally --- .config/systemd/user/sleep-i3lock@.service | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .config/systemd/user/sleep-i3lock@.service diff --git a/.config/systemd/user/sleep-i3lock@.service b/.config/systemd/user/sleep-i3lock@.service new file mode 100644 index 0000000..66dffaf --- /dev/null +++ b/.config/systemd/user/sleep-i3lock@.service @@ -0,0 +1,10 @@ +[Unit] +Description=Lock X session using i3lock + +[Service] +User=%i +Environment=DISPLAY=:0 +ExecStart=sh -c '~/.config/i3/lock.sh' + +[Install] +WantedBy=sleep.target