xlock: lock screen faster by invoking i3lock directly

Instead of trying to mess with xautolock to trigger locking, just
invoke i3lock directly.
This commit is contained in:
Vincent Bernat 2013-11-01 09:23:26 +01:00
parent ebfdad5021
commit 51525044ae
3 changed files with 7 additions and 2 deletions

View file

@ -11,7 +11,8 @@ config.keys.global = awful.util.table.join(
config.keys.global,
awful.key({}, "XF86ScreenSaver",
function()
awful.util.spawn_with_shell("xautolock -locknow & sleep 1 ; xautolock -enable ; sleep 1 ; xautolock -locknow", false)
awful.util.spawn(awful.util.getdir("config") ..
"/bin/locker", false)
end))
-- Configure DPMS