lock: enable locking with modkey + delete

Some keyboards are missing a lot of keys...
This commit is contained in:
Vincent Bernat 2014-07-01 16:17:11 +02:00
parent 626ceabf48
commit f7d82d5c52

View file

@ -7,13 +7,15 @@ xrun("xautolock",
"/bin/xautolock " ..
icons.lookup({name = "system-lock-screen", type = "actions" }))
local lock = function()
awful.util.spawn(awful.util.getdir("config") ..
"/bin/locker", false)
end
config.keys.global = awful.util.table.join(
config.keys.global,
awful.key({}, "XF86ScreenSaver",
function()
awful.util.spawn(awful.util.getdir("config") ..
"/bin/locker", false)
end))
awful.key({}, "XF86ScreenSaver", lock),
awful.key({ modkey, }, "Delete", lock))
-- Configure DPMS
os.execute("xset dpms 360 720 1200")