Add and improve some comments to awesomerc.lua
This commit is contained in:
parent
f12ba8fec0
commit
51f1308ebb
|
@ -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 = { },
|
||||
|
|
Loading…
Reference in New Issue