summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-01-24 21:38:05 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-01-24 21:38:05 +0100
commit0ac15ef5466570d9582ea41e369fb26749bfb758 (patch)
tree37616fb381b6fdd6f8c59001e2625ae94b1b11b0
parent9d89de55f871cce68b5762f22d8f199f546d2241 (diff)
add -s argumentHEADmaster
-rw-r--r--dmenu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dmenu.c b/dmenu.c
index 00c12bc..dacfe15 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -714,7 +714,7 @@ static void
usage(void)
{
fputs("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n"
- " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]\n", stderr);
+ " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid] [-s margin]\n", stderr);
exit(1);
}
@@ -757,6 +757,8 @@ main(int argc, char *argv[])
colors[SchemeSel][ColFg] = argv[++i];
else if (!strcmp(argv[i], "-w")) /* embedding window id */
embed = argv[++i];
+ else if (!strcmp(argv[i], "-s"))
+ gapxx = atoi(argv[++i]);
else
usage();