From 2544780887306c2da71685f86a0587d1b92ee3a8 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sat, 26 Nov 2011 19:17:19 +0100 Subject: add lock --- rc.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc.lua b/rc.lua index 230a662..46b6b2a 100644 --- a/rc.lua +++ b/rc.lua @@ -22,6 +22,7 @@ terminal = "x-terminal-emulator" terminal_small = "x-terminal-emulator -name urxvt-small" editor = os.getenv("EDITOR") or "editor" editor_cmd = terminal .. " -e " .. editor +lock = "slock" -- Default modkey. -- Usually, Mod4 is the key with a logo between Control and Alt. @@ -206,6 +207,7 @@ globalkeys = awful.util.table.join( -- Standard program awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end), awful.key({ modkey, "Shift" }, "Return", function () awful.util.spawn(terminal_small) end), + awful.key({ modkey, }, "v", function () awful.util.spawn(lock) end), awful.key({ modkey, "Control" }, "r", awesome.restart), awful.key({ modkey, "Shift" }, "q", awesome.quit), -- cgit v1.2.3