2012-07-06 14:19:54 +02:00
|
|
|
-- Lockscreen
|
|
|
|
|
2012-07-15 22:22:38 +02:00
|
|
|
local icons = loadrc("icons", "vbe/icons")
|
|
|
|
|
2012-07-06 14:19:54 +02:00
|
|
|
xrun("xautolock",
|
2012-07-11 10:01:53 +02:00
|
|
|
"xautolock -notify 10 -notifier " ..
|
2012-07-15 22:22:38 +02:00
|
|
|
" 'notify-send Lock\\ screen -i " ..
|
|
|
|
icons.lookup({name = "system-lock-screen", type = "actions" }) ..
|
|
|
|
" -t 10000 " ..
|
2012-07-11 23:46:23 +02:00
|
|
|
" Lock\\ screen\\ will\\ be\\ started\\ in\\ 10\\ seconds...' " ..
|
2012-07-11 10:01:53 +02:00
|
|
|
" -time 3 -locker " ..
|
|
|
|
" 'i3lock -n -i " .. awful.util.getdir("cache") .. "/current-wallpaper.png'")
|
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("xautolock -locknow", false) end))
|
2012-07-11 09:05:34 +02:00
|
|
|
|
|
|
|
-- Configure DPMS
|
|
|
|
os.execute("xset dpms 360 720 1200")
|