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

13 lines
365 B
Lua
Raw Normal View History

2012-07-06 14:19:54 +02:00
-- Lockscreen
xrun("xautolock",
2012-07-11 09:05:34 +02:00
"xautolock -time 3 -locker 'i3lock -n -i " ..
2012-07-06 14:19:54 +02:00
awful.util.getdir("cache") .. "/current-wallpaper.png'")
config.keys.global = awful.util.table.join(
config.keys.global,
awful.key({}, "XF86ScreenSaver", function() awful.util.spawn("xautolock -locknow", false) end))
2012-07-11 09:05:34 +02:00
-- Configure DPMS
os.execute("xset dpms 360 720 1200")