Super + Shift + L just turns off the screen

This commit is contained in:
Thomas Forgione 2018-11-24 11:15:08 +01:00
parent 81fb5dc79f
commit 833015737a
No known key found for this signature in database
GPG Key ID: 63D3E1A00D54FD76
1 changed files with 4 additions and 0 deletions

View File

@ -452,6 +452,10 @@ globalkeys = awful.util.table.join(
awful.spawn.easy_async_with_shell('bash -c "slock&" && sleep 1 && xset dpms force off && slock', function() end)
end, { description="Locks the screen", group="custom"}),
awful.key({modkey, "Shift"}, "l", function()
awful.spawn.easy_async_with_shell('sleep 1 && xset dpms force off', function() end)
end, { description="Locks the screen", group="custom"}),
awful.key({modkey, "Shift"}, "Tab", function()
awful.spawn.easy_async('xdotool key Caps_Lock', function() end)
end, {description="switch the caps lock", group="custom"}),