diff --git a/dmenubar/dmenubar.c b/dmenubar/dmenubar.c index f8f46fa..7aca70f 100644 --- a/dmenubar/dmenubar.c +++ b/dmenubar/dmenubar.c @@ -1,18 +1,13 @@ /* See LICENSE file for copyright and license details. */ -/* I'm not a very good C programmer and this isn't the best I can do. - * There are a lot of fragments here from Suckless' dmenu. I would - * recommend hacking on that instead. This is itself a total hack and - * not a pretty one, but it works and I'm at least proud of that. +/* This is a hack I did years ago. Fork dmenu and start from there if you can. * ~ trinity */ -#include #include #include #include #include #include -#include #include #include @@ -188,7 +183,7 @@ setup(void) static void usage(void) { - fputs("usage: dmenubar [-bv] [-fn font] [-m monitor]\n" + fputs("usage: dmenubar [-b] [-fn font] [-m monitor]\n" " [-cb color] [-cf color] [-w windowid]\n", stderr); exit(1); } @@ -203,11 +198,7 @@ main(int argc, char *argv[]) text[i] = '\0'; for (i = 1; i < argc; i++) - /* these options take no arguments */ - if (!strcmp(argv[i], "-v")) { /* prints version information */ - puts("dmenuBAR-"VERSION); - exit(0); - } else if (!strcmp(argv[i], "-b")) /* appears at the bottom of the screen */ + if (!strcmp(argv[i], "-b")) /* appears at the bottom of the screen */ topbar = 0; else if (i + 1 == argc) usage();