diff --git a/awesomerc b/awesomerc index c5441594f..24c808715 100644 --- a/awesomerc +++ b/awesomerc @@ -10,18 +10,17 @@ general font = "fixed-12" } -colors -{ - normal_border = "#111111" - normal_bg = "#111111" - normal_fg = "#eeeeee" - focus_border = "#6666ff" - focus_bg = "#6666ff" - focus_fg = "#ffffff" -} - screen 0 { + colors + { + normal_border = "#111111" + normal_bg = "#111111" + normal_fg = "#eeeeee" + focus_border = "#6666ff" + focus_bg = "#6666ff" + focus_fg = "#ffffff" + } statusbar { position = "top" diff --git a/config.c b/config.c index 531d5acd8..286d16c22 100644 --- a/config.c +++ b/config.c @@ -199,6 +199,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), }; static cfg_opt_t rule_opts[] = { @@ -229,7 +230,6 @@ parse_config(const char *confpatharg, awesome_config *awesomeconf) static cfg_opt_t opts[] = { CFG_SEC((char *) "general", general_opts, CFGF_NONE), - CFG_SEC((char *) "colors", colors_opts, CFGF_NONE), 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), @@ -280,10 +280,10 @@ parse_config(const char *confpatharg, awesome_config *awesomeconf) /* get screen specific sections */ cfg_statusbar = cfg_getsec(cfg_screen, "statusbar"); cfg_tags = cfg_getsec(cfg_screen, "tags"); + cfg_colors = cfg_getsec(cfg_screen, "colors"); /* get general sections */ cfg_general = cfg_getsec(cfg, "general"); - cfg_colors = cfg_getsec(cfg, "colors"); cfg_layouts = cfg_getsec(cfg, "layouts"); cfg_rules = cfg_getsec(cfg, "rules"); cfg_keys = cfg_getsec(cfg, "keys");