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:
{
# Default bar position
barpos = "BarTop";
# Default bar position: top, bottom, off
barpos = "top";
# Window border size
borderpx = 1;
# Window snap pixels

View File

@ -311,9 +311,9 @@ parse_config(Display * disp, int scr, DC * drawcontext, awesome_config *awesomec
/* 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;
else if(tmp && !strncmp(tmp, "BarBot", 6))
else if(tmp && !strncmp(tmp, "bottom", 6))
awesomeconf->statusbar_default_position = BarBot;
else
awesomeconf->statusbar_default_position = BarTop;