mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-23 10:18:34 +02:00
21 lines
546 B
Lua
21 lines
546 B
Lua
-- Lockscreen
|
|
|
|
local icons = loadrc("icons", "vbe/icons")
|
|
|
|
xrun("xautolock",
|
|
awful.util.getdir("config") ..
|
|
"/bin/xautolock " ..
|
|
icons.lookup({name = "system-lock-screen", type = "actions" }))
|
|
|
|
local lock = function()
|
|
awful.util.spawn(awful.util.getdir("config") ..
|
|
"/bin/locker", false)
|
|
end
|
|
|
|
config.keys.global = awful.util.table.join(
|
|
config.keys.global,
|
|
awful.key({}, "XF86ScreenSaver", lock),
|
|
awful.key({ modkey, }, "Delete", lock))
|
|
|
|
-- Configure DPMS
|
|
os.execute("xset dpms 360 720 1200")
|