mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 19:22:32 +00:00
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: ::
|
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
|
.. _BY-NC-SA: http://creativecommons.org/licenses/by-nc-sa/4.0
|
||||||
.. _b0ab0d7: https://github.com/lcpz/awesome-copycats/tree/b0ab0d7837987be81b9195a36631df773113d491
|
.. _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 gui_editor = "gvim"
|
||||||
local browser = "firefox"
|
local browser = "firefox"
|
||||||
local guieditor = "atom"
|
local guieditor = "atom"
|
||||||
|
local scrlocker = "xlock"
|
||||||
|
|
||||||
awful.util.terminal = terminal
|
awful.util.terminal = terminal
|
||||||
awful.util.tagnames = { "1", "2", "3", "4", "5" }
|
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,
|
awful.key({ altkey }, "p", function() os.execute("screenshot") end,
|
||||||
{description = "take a screenshot", group = "hotkeys"}),
|
{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
|
-- Hotkeys
|
||||||
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
|
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
|
||||||
{description = "show help", group="awesome"}),
|
{description = "show help", group="awesome"}),
|
||||||
|
|
Loading…
Reference in a new issue