Add and improve some comments to awesomerc.lua

This commit is contained in:
Daniel Hahler 2014-03-28 15:17:41 +01:00 committed by Uli Schlachter
parent f12ba8fec0
commit 51f1308ebb
1 changed files with 6 additions and 1 deletions

View File

@ -37,7 +37,7 @@ end
-- }}} -- }}}
-- {{{ Variable definitions -- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers -- Themes define colours, icons, font and wallpapers.
beautiful.init("@AWESOME_THEMES_PATH@/default/theme.lua") beautiful.init("@AWESOME_THEMES_PATH@/default/theme.lua")
-- This is used later as the default terminal and editor to run. -- 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. -- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do for i = 1, 9 do
globalkeys = awful.util.table.join(globalkeys, globalkeys = awful.util.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9, awful.key({ modkey }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -307,6 +308,7 @@ for i = 1, 9 do
awful.tag.viewonly(tag) awful.tag.viewonly(tag)
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control" }, "#" .. i + 9, awful.key({ modkey, "Control" }, "#" .. i + 9,
function () function ()
local screen = mouse.screen local screen = mouse.screen
@ -315,6 +317,7 @@ for i = 1, 9 do
awful.tag.viewtoggle(tag) awful.tag.viewtoggle(tag)
end end
end), end),
-- Move client to tag.
awful.key({ modkey, "Shift" }, "#" .. i + 9, awful.key({ modkey, "Shift" }, "#" .. i + 9,
function () function ()
if client.focus then if client.focus then
@ -324,6 +327,7 @@ for i = 1, 9 do
end end
end end
end), end),
-- Toggle tag.
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function () function ()
if client.focus then if client.focus then
@ -345,6 +349,7 @@ root.keys(globalkeys)
-- }}} -- }}}
-- {{{ Rules -- {{{ Rules
-- Rules to apply to new clients (through the "manage" signal).
awful.rules.rules = { awful.rules.rules = {
-- All clients will match this rule. -- All clients will match this rule.
{ rule = { }, { rule = { },