From 01461f7dd83c47c309f6055f00f6c08461ccc463 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 21 Aug 2009 15:50:10 +0200 Subject: [PATCH] awesomerc: use awful.tag() to create tags Signed-off-by: Julien Danjou --- awesomerc.lua.in | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 414c1397..3bdb6e6f 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -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 -- }}}