From b54fb3f47645b0d2f7f93537425071ef85f881c2 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 10 Jan 2018 12:40:04 -0500 Subject: [PATCH] Add the suspend service, which will need to be copied on each computer --- .config/i3/suspend@.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .config/i3/suspend@.service diff --git a/.config/i3/suspend@.service b/.config/i3/suspend@.service new file mode 100644 index 0000000..959e525 --- /dev/null +++ b/.config/i3/suspend@.service @@ -0,0 +1,12 @@ +[Unit] +Description=User suspend actions +Before=sleep.target + +[Service] +User=%I +Type=forking +Environment=DISPLAY=:0 +ExecStart=/home/adam/.config/i3/lock.sh lock + +[Install] +WantedBy=sleep.target