add screen lock hotkey; closes #215
This commit is contained in:
parent
cb0672dcb3
commit
e9de2b426a
|
@ -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
|
||||
|
|
|
@ -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"}),
|
||||
|
|
Loading…
Reference in New Issue