change key for statusbar position config
This commit is contained in:
parent
6a11f10764
commit
c5211cc8d1
|
@ -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
|
||||||
|
|
4
config.c
4
config.c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue