mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 02:38:33 +02:00
Instead of trying to mess with xautolock to trigger locking, just invoke i3lock directly.
19 lines
536 B
Lua
19 lines
536 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" }))
|
|
|
|
config.keys.global = awful.util.table.join(
|
|
config.keys.global,
|
|
awful.key({}, "XF86ScreenSaver",
|
|
function()
|
|
awful.util.spawn(awful.util.getdir("config") ..
|
|
"/bin/locker", false)
|
|
end))
|
|
|
|
-- Configure DPMS
|
|
os.execute("xset dpms 360 720 1200")
|