xlock: also configure DPMS

This commit is contained in:
Vincent Bernat 2012-07-11 09:05:34 +02:00
parent f9d4dafd81
commit 53ca8b7ad5

View file

@ -1,9 +1,12 @@
-- Lockscreen
xrun("xautolock",
"xautolock -time 5 -locker 'i3lock -n -i " ..
"xautolock -time 3 -locker 'i3lock -n -i " ..
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))
-- Configure DPMS
os.execute("xset dpms 360 720 1200")