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,25 +66,24 @@ screen 0
layout = "floating" layout = "floating"
} }
} }
} layouts
layouts
{
layout tile
{ {
symbol = "[]=" layout tile
} {
layout tileleft symbol = "[]="
{ }
symbol = "=[]" layout tileleft
} {
layout max symbol = "=[]"
{ }
symbol = "[ ]" layout max
} {
layout floating symbol = "[ ]"
{ }
symbol = "><>" layout floating
{
symbol = "><>"
}
} }
} }

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