commit 45838326b3fbed24d56063b64cae841ee7b56282
parent 9fbca8b3f21d2d0ad07d19ec8222c2a3fd89b984
Author: Christoph Lohmann <20h@r-36.net>
Date: Wed, 7 Sep 2011 22:09:54 +0200
Make widthscaling a commandline parameter.
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/config.def.h b/config.def.h
@@ -7,5 +7,5 @@ static const char *pressfgcolor = "#000000";
static const char *highlightbgcolor = "#bbbbbb";
static const char *highlightfgcolor = "#000000";
-static const int widthscaling = 1.5;
+static float widthscaling = 1.5;
diff --git a/thingmenu.c b/thingmenu.c
@@ -561,6 +561,10 @@ main(int argc, char *argv[])
wh = atoi(argv[i+1]);
i++;
break;
+ case 's':
+ widthscaling = atoi(argv[i+1]);
+ i++;
+ break;
case 'w':
ww = atoi(argv[i+1]);
i++;