vincentbernat.i3wm-configur.../rc/xlock.lua
Vincent Bernat 51525044ae xlock: lock screen faster by invoking i3lock directly
Instead of trying to mess with xautolock to trigger locking, just
invoke i3lock directly.
2013-11-01 09:23:26 +01:00

19 lines
536 B
Lua

-- Lockscreen
local icons = loadrc("icons", "vbe/icons")
xrun("xautolock",
awful.util.getdir("config") ..
"/bin/xautolock " ..
icons.lookup({name = "system-lock-screen", type = "actions" }))
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))
-- Configure DPMS
os.execute("xset dpms 360 720 1200")