tags: rework how tags are defined

Instead of using a list of names and a list of layouts, we use an
array with optional names and layouts and additional properties. If no
name is given, only numerical ID is used. Default to first
layout. Additional properties are set using `setproperty`.
This commit is contained in:
Vincent Bernat 2012-07-14 01:29:24 +02:00
parent 7901e0c294
commit e5e338e8ee
2 changed files with 29 additions and 13 deletions

9
rc.lua
View file

@ -40,6 +40,15 @@ config.layouts = {
awful.layout.suit.fair,
awful.layout.suit.floating,
}
config.tags = {
{ layout = awful.layout.suit.fair }, -- 1
{ name = "emacs", mwfact = 0.6 },
{ name = "www", mwfact = 0.7 },
{ name = "im" , mwfact = 0.2 },
{ }, -- 5
{ }, -- 6
{ }, -- 7
}
config.hostname = awful.util.pread('uname -n'):gsub('\n', '')
-- Remaining modules