change key for statusbar position config

This commit is contained in:
Julien Danjou 2007-09-15 15:00:42 +02:00
parent 6a11f10764
commit c5211cc8d1
2 changed files with 4 additions and 4 deletions

View File

@ -2,8 +2,8 @@
awesome: awesome:
{ {
# Default bar position # Default bar position: top, bottom, off
barpos = "BarTop"; barpos = "top";
# Window border size # Window border size
borderpx = 1; borderpx = 1;
# Window snap pixels # Window snap pixels

View File

@ -311,9 +311,9 @@ parse_config(Display * disp, int scr, DC * drawcontext, awesome_config *awesomec
/* barpos */ /* barpos */
tmp = config_lookup_string(&awesomelibconf, "awesome.barpos"); tmp = config_lookup_string(&awesomelibconf, "awesome.barpos");
if(tmp && !strncmp(tmp, "BarOff", 6)) if(tmp && !strncmp(tmp, "off", 6))
awesomeconf->statusbar_default_position = BarOff; awesomeconf->statusbar_default_position = BarOff;
else if(tmp && !strncmp(tmp, "BarBot", 6)) else if(tmp && !strncmp(tmp, "bottom", 6))
awesomeconf->statusbar_default_position = BarBot; awesomeconf->statusbar_default_position = BarBot;
else else
awesomeconf->statusbar_default_position = BarTop; awesomeconf->statusbar_default_position = BarTop;