[config] Simplify default config
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
54e27e300a
commit
a1ba2b8df5
|
@ -15,24 +15,16 @@ modkey = "Mod4"
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Tags
|
-- {{{ Tags
|
||||||
-- Define tags
|
-- Define tags table
|
||||||
tags = {}
|
tags = {}
|
||||||
for s = 1, awesome.screen_count() do
|
for s = 1, awesome.screen_count() do
|
||||||
tags[s] =
|
-- Each screen has its own tag table
|
||||||
{
|
tags[s] = {}
|
||||||
tag.new({ name = "1" }),
|
-- Create 9 tags per screen
|
||||||
tag.new({ name = "2" }),
|
for tagnumber = 1, 9 do
|
||||||
tag.new({ name = "3" }),
|
tags[s][tagnumber] = tag.new({ name = tagnumber })
|
||||||
tag.new({ name = "4" }),
|
-- Add tags to screen one by one
|
||||||
tag.new({ name = "5" }),
|
tags[s][tagnumber]:add(s)
|
||||||
tag.new({ name = "6" }),
|
|
||||||
tag.new({ name = "7" }),
|
|
||||||
tag.new({ name = "8" }),
|
|
||||||
tag.new({ name = "9" })
|
|
||||||
}
|
|
||||||
-- Add tags to screen 0 one by one
|
|
||||||
for index, tag in ipairs(tags[s]) do
|
|
||||||
tag:add(s)
|
|
||||||
end
|
end
|
||||||
-- I'm sure you want to see at least one tag.
|
-- I'm sure you want to see at least one tag.
|
||||||
tags[s][1]:view(true)
|
tags[s][1]:view(true)
|
||||||
|
|
Loading…
Reference in New Issue