tags are now per screen configurable

This commit is contained in:
Julien Danjou 2007-11-11 11:36:30 +01:00
parent 8b048ec6fe
commit a30227e27b
2 changed files with 39 additions and 40 deletions

View File

@ -26,45 +26,44 @@ screen 0
{ {
position = "top" position = "top"
} }
} tags
tags
{
tag 1
{ {
layout = "tile" tag 1
} {
tag 2 layout = "tile"
{ }
layout = "tile" tag 2
} {
tag 3 layout = "tile"
{ }
layout = "tile" tag 3
} {
tag 4 layout = "tile"
{ }
layout = "tile" tag 4
} {
tag 5 layout = "tile"
{ }
layout = "tile" tag 5
} {
tag 6 layout = "tile"
{ }
layout = "tile" tag 6
} {
tag 7 layout = "tile"
{ }
layout = "tile" tag 7
} {
tag 8 layout = "tile"
{ }
layout = "tile" tag 8
} {
tag 9 layout = "tile"
{ }
layout = "floating" tag 9
{
layout = "floating"
}
} }
} }

View File

@ -198,6 +198,7 @@ parse_config(const char *confpatharg, awesome_config *awesomeconf)
static cfg_opt_t screen_opts[] = static cfg_opt_t screen_opts[] =
{ {
CFG_SEC((char *) "statusbar", statusbar_opts, CFGF_NONE), CFG_SEC((char *) "statusbar", statusbar_opts, CFGF_NONE),
CFG_SEC((char *) "tags", tags_opts, CFGF_NONE),
}; };
static cfg_opt_t rule_opts[] = static cfg_opt_t rule_opts[] =
{ {
@ -230,7 +231,6 @@ parse_config(const char *confpatharg, awesome_config *awesomeconf)
CFG_SEC((char *) "general", general_opts, CFGF_NONE), CFG_SEC((char *) "general", general_opts, CFGF_NONE),
CFG_SEC((char *) "colors", colors_opts, CFGF_NONE), CFG_SEC((char *) "colors", colors_opts, CFGF_NONE),
CFG_SEC((char *) "screen", screen_opts, CFGF_TITLE | CFGF_MULTI), CFG_SEC((char *) "screen", screen_opts, CFGF_TITLE | CFGF_MULTI),
CFG_SEC((char *) "tags", tags_opts, CFGF_NONE),
CFG_SEC((char *) "layouts", layouts_opts, CFGF_NONE), 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),
@ -279,11 +279,11 @@ parse_config(const char *confpatharg, awesome_config *awesomeconf)
/* get screen specific sections */ /* get screen specific sections */
cfg_statusbar = cfg_getsec(cfg_screen, "statusbar"); cfg_statusbar = cfg_getsec(cfg_screen, "statusbar");
cfg_tags = cfg_getsec(cfg_screen, "tags");
/* get general sections */ /* get general sections */
cfg_general = cfg_getsec(cfg, "general"); cfg_general = cfg_getsec(cfg, "general");
cfg_colors = cfg_getsec(cfg, "colors"); cfg_colors = cfg_getsec(cfg, "colors");
cfg_tags = cfg_getsec(cfg, "tags");
cfg_layouts = cfg_getsec(cfg, "layouts"); 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");