mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-28 04:20:03 +02:00
lock: enable locking with modkey + delete
Some keyboards are missing a lot of keys...
This commit is contained in:
parent
626ceabf48
commit
f7d82d5c52
1 changed files with 7 additions and 5 deletions
12
rc/xlock.lua
12
rc/xlock.lua
|
@ -7,13 +7,15 @@ xrun("xautolock",
|
||||||
"/bin/xautolock " ..
|
"/bin/xautolock " ..
|
||||||
icons.lookup({name = "system-lock-screen", type = "actions" }))
|
icons.lookup({name = "system-lock-screen", type = "actions" }))
|
||||||
|
|
||||||
config.keys.global = awful.util.table.join(
|
local lock = function()
|
||||||
config.keys.global,
|
|
||||||
awful.key({}, "XF86ScreenSaver",
|
|
||||||
function()
|
|
||||||
awful.util.spawn(awful.util.getdir("config") ..
|
awful.util.spawn(awful.util.getdir("config") ..
|
||||||
"/bin/locker", false)
|
"/bin/locker", false)
|
||||||
end))
|
end
|
||||||
|
|
||||||
|
config.keys.global = awful.util.table.join(
|
||||||
|
config.keys.global,
|
||||||
|
awful.key({}, "XF86ScreenSaver", lock),
|
||||||
|
awful.key({ modkey, }, "Delete", lock))
|
||||||
|
|
||||||
-- Configure DPMS
|
-- Configure DPMS
|
||||||
os.execute("xset dpms 360 720 1200")
|
os.execute("xset dpms 360 720 1200")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue