mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-26 11:48:33 +02:00
xlock: really lock the screen
xautolock only reads its messages once per second. It can only receives one message. So, if we send "enable" and "locknow", "locknow" erases "enable". Try to be smarter.
This commit is contained in:
parent
38a6b2205b
commit
27c5c4deee
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ config.keys.global = awful.util.table.join(
|
|||
config.keys.global,
|
||||
awful.key({}, "XF86ScreenSaver",
|
||||
function()
|
||||
awful.util.spawn_with_shell("xautolock -enable ; xautolock -locknow", false)
|
||||
awful.util.spawn_with_shell("xautolock -locknow & sleep 1 ; xautolock -enable ; sleep 1 ; xautolock -locknow", false)
|
||||
end))
|
||||
|
||||
-- Configure DPMS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue