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-09-15 10:04:34 +02:00
|
|
|
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,
|
2013-08-10 12:52:37 +02:00
|
|
|
awful.key({}, "XF86ScreenSaver",
|
|
|
|
function()
|
2013-08-20 15:20:28 +02:00
|
|
|
awful.util.spawn_with_shell("xautolock -locknow & sleep 1 ; xautolock -enable ; sleep 1 ; xautolock -locknow", false)
|
2013-08-10 12:52:37 +02:00
|
|
|
end))
|
2012-07-11 09:05:34 +02:00
|
|
|
|
|
|
|
-- Configure DPMS
|
|
|
|
os.execute("xset dpms 360 720 1200")
|