@@ -43,8 +43,8 @@ do
end
-- }}}
-awful.util.spawn('compton')
---awful.util.spawn_with_shell(os.getenv('HOME') .. '/.conkyinit --restart >/dev/null 2>&1')
+awful.spawn('compton')
+--awful.spawn_with_shell(os.getenv('HOME') .. '/.conkyinit --restart >/dev/null 2>&1')
-- {{{ Variable definitions
-- Themes define colours, icons, font and wallpapers.
@@ -0,0 +1,24 @@
+;[Unit]
+;Description=User suspend actions
+;Before=suspend.target
+
+;[Service]
+;User=%u
+;Type=forking
+;Environment=DISPLAY=:0
+;ExecStart=/usr/bin/xautolock -locknow
+;[Install]
+;WantedBy=suspend.target
+[Unit]
+Description=Lock X session using slimlock
+Before=suspend.target
+[Service]
+User=%u
+Type=simple
+ExecStart=/usr/bin/xautolock -locknow
+[Install]
+WantedBy=suspend.target
@@ -0,0 +1 @@
+/home/drew/.config/systemd/user/slimlock.service
@@ -0,0 +1,9 @@
+Description=Lock screen after timeout
+ExecStart=/usr/bin/xautolock -time 10 -locker "/usr/bin/slimlock" -nowlocker "/usr/bin/slimlock" -detectsleep
+WantedBy=default.target