layouts are now configurable per screen

This commit is contained in:
Julien Danjou 2007-11-11 12:05:04 +01:00
parent 1c9c2b9309
commit 799da178b0
2 changed files with 19 additions and 20 deletions

View File

@ -66,10 +66,8 @@ screen 0
layout = "floating"
}
}
}
layouts
{
layouts
{
layout tile
{
symbol = "[]="
@ -86,6 +84,7 @@ layouts
{
symbol = "><>"
}
}
}
rules

View File

@ -201,6 +201,7 @@ parse_config(const char *confpatharg, awesome_config *awesomeconf)
CFG_SEC((char *) "statusbar", statusbar_opts, CFGF_NONE),
CFG_SEC((char *) "tags", tags_opts, CFGF_NONE),
CFG_SEC((char *) "colors", colors_opts, CFGF_NONE),
CFG_SEC((char *) "layouts", layouts_opts, CFGF_NONE),
};
static cfg_opt_t rule_opts[] =
{
@ -231,7 +232,6 @@ parse_config(const char *confpatharg, awesome_config *awesomeconf)
static cfg_opt_t opts[] =
{
CFG_SEC((char *) "screen", screen_opts, CFGF_TITLE | CFGF_MULTI),
CFG_SEC((char *) "layouts", layouts_opts, CFGF_NONE),
CFG_SEC((char *) "rules", rules_opts, CFGF_NONE),
CFG_SEC((char *) "keys", keys_opts, CFGF_NONE),
CFG_END()
@ -282,9 +282,9 @@ parse_config(const char *confpatharg, awesome_config *awesomeconf)
cfg_tags = cfg_getsec(cfg_screen, "tags");
cfg_colors = cfg_getsec(cfg_screen, "colors");
cfg_general = cfg_getsec(cfg_screen, "general");
cfg_layouts = cfg_getsec(cfg_screen, "layouts");
/* get general sections */
cfg_layouts = cfg_getsec(cfg, "layouts");
cfg_rules = cfg_getsec(cfg, "rules");
cfg_keys = cfg_getsec(cfg, "keys");