From 51f1308ebb1c48a9bd7e9278d214eae5c78a94b8 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 28 Mar 2014 15:17:41 +0100 Subject: [PATCH] Add and improve some comments to awesomerc.lua --- awesomerc.lua.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 0e5170191..2cd914ad3 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -37,7 +37,7 @@ end -- }}} -- {{{ Variable definitions --- Themes define colours, icons, and wallpapers +-- Themes define colours, icons, font and wallpapers. beautiful.init("@AWESOME_THEMES_PATH@/default/theme.lua") -- This is used later as the default terminal and editor to run. @@ -299,6 +299,7 @@ clientkeys = awful.util.table.join( -- This should map on the top row of your keyboard, usually 1 to 9. for i = 1, 9 do globalkeys = awful.util.table.join(globalkeys, + -- View tag only. awful.key({ modkey }, "#" .. i + 9, function () local screen = mouse.screen @@ -307,6 +308,7 @@ for i = 1, 9 do awful.tag.viewonly(tag) end end), + -- Toggle tag. awful.key({ modkey, "Control" }, "#" .. i + 9, function () local screen = mouse.screen @@ -315,6 +317,7 @@ for i = 1, 9 do awful.tag.viewtoggle(tag) end end), + -- Move client to tag. awful.key({ modkey, "Shift" }, "#" .. i + 9, function () if client.focus then @@ -324,6 +327,7 @@ for i = 1, 9 do end end end), + -- Toggle tag. awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, function () if client.focus then @@ -345,6 +349,7 @@ root.keys(globalkeys) -- }}} -- {{{ Rules +-- Rules to apply to new clients (through the "manage" signal). awful.rules.rules = { -- All clients will match this rule. { rule = { },