awesomerc: use awful.tag() to create tags

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-21 15:50:10 +02:00
parent a800696a65
commit 01461f7dd8
1 changed files with 2 additions and 11 deletions

View File

@ -72,20 +72,11 @@ use_titlebar = false
-- }}}
-- {{{ Tags
-- Define tags table.
-- Define a tag table which hold all screen tags.
tags = {}
for s = 1, screen.count() do
-- Each screen has its own tag table.
tags[s] = {}
-- Create 9 tags per screen.
for tagnumber = 1, 9 do
tags[s][tagnumber] = tag { name = tagnumber }
-- Add tags to screen one by one
tags[s][tagnumber].screen = s
awful.layout.set(layouts[1], tags[s][tagnumber])
end
-- I'm sure you want to see at least one tag.
tags[s][1].selected = true
tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s)
end
-- }}}