lock: ensure xautolock locks the screen even if disabled

This commit is contained in:
Vincent Bernat 2013-08-10 12:52:37 +02:00
parent 17da10b1ef
commit 04b184c6cc

View file

@ -9,7 +9,10 @@ xrun("xautolock",
config.keys.global = awful.util.table.join( config.keys.global = awful.util.table.join(
config.keys.global, config.keys.global,
awful.key({}, "XF86ScreenSaver", function() awful.util.spawn("xautolock -locknow", false) end)) awful.key({}, "XF86ScreenSaver",
function()
awful.util.spawn_with_shell("xautolock -enable ; xautolock -locknow", false)
end))
-- Configure DPMS -- Configure DPMS
os.execute("xset dpms 360 720 1200") os.execute("xset dpms 360 720 1200")