Add and improve some comments to awesomerc.lua
This commit is contained in:
parent
3cbdc2a79f
commit
fac9b66592
|
@ -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.
|
||||
|
@ -298,6 +298,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
|
||||
|
@ -306,6 +307,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
|
||||
|
@ -314,6 +316,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
|
||||
|
@ -323,6 +326,7 @@ for i = 1, 9 do
|
|||
end
|
||||
end
|
||||
end),
|
||||
-- Toggle tag.
|
||||
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
|
||||
function ()
|
||||
if client.focus then
|
||||
|
@ -344,6 +348,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