add screen lock hotkey; closes #215

This commit is contained in:
Luca CPZ 2018-01-07 12:50:39 +01:00
parent cb0672dcb3
commit e9de2b426a
2 changed files with 6 additions and 1 deletions

View File

@ -144,7 +144,7 @@ Blackburn and Dremora use Icons_, Vertex uses FontAwesome_: be sure to have bitm
Additional default software used: ::
unclutter firefox scrot mpd mpc dmenu xsel
unclutter firefox scrot mpd mpc dmenu xsel xlock
.. _BY-NC-SA: http://creativecommons.org/licenses/by-nc-sa/4.0
.. _b0ab0d7: https://github.com/lcpz/awesome-copycats/tree/b0ab0d7837987be81b9195a36631df773113d491

View File

@ -80,6 +80,7 @@ local editor = os.getenv("EDITOR") or "nano"
local gui_editor = "gvim"
local browser = "firefox"
local guieditor = "atom"
local scrlocker = "xlock"
awful.util.terminal = terminal
awful.util.tagnames = { "1", "2", "3", "4", "5" }
@ -227,6 +228,10 @@ globalkeys = awful.util.table.join(
awful.key({ altkey }, "p", function() os.execute("screenshot") end,
{description = "take a screenshot", group = "hotkeys"}),
-- X screen locker
awful.key({ altkey, "Control" }, "l", function () os.execute(scrlocker) end,
{description = "lock screen", group = "hotkeys"}),
-- Hotkeys
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
{description = "show help", group="awesome"}),