From 0ac15ef5466570d9582ea41e369fb26749bfb758 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Tue, 24 Jan 2023 21:38:05 +0100 Subject: add -s argument --- dmenu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3-70-g09d2