mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-22 11:54:27 +02:00
lock: ensure xautolock locks the screen even if disabled
This commit is contained in:
parent
17da10b1ef
commit
04b184c6cc
1 changed files with 4 additions and 1 deletions
|
@ -9,7 +9,10 @@ xrun("xautolock",
|
|||
|
||||
config.keys.global = awful.util.table.join(
|
||||
config.keys.global,
|
||||
awful.key({}, "XF86ScreenSaver", function() awful.util.spawn("xautolock -locknow", false) end))
|
||||
awful.key({}, "XF86ScreenSaver",
|
||||
function()
|
||||
awful.util.spawn_with_shell("xautolock -enable ; xautolock -locknow", false)
|
||||
end))
|
||||
|
||||
-- Configure DPMS
|
||||
os.execute("xset dpms 360 720 1200")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue