vincentbernat.i3wm-configur.../rc/xlock.lua

20 lines
536 B
Lua
Raw Normal View History

2012-07-06 14:19:54 +02:00
-- Lockscreen
local icons = loadrc("icons", "vbe/icons")
2012-07-06 14:19:54 +02:00
xrun("xautolock",
awful.util.getdir("config") ..
"/bin/xautolock " ..
icons.lookup({name = "system-lock-screen", type = "actions" }))
2012-07-06 14:19:54 +02:00
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))
2012-07-11 09:05:34 +02:00
-- Configure DPMS
os.execute("xset dpms 360 720 1200")