From 7c717ee22194a597bc6a3f4f1876c015ce08cdc8 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Tue, 16 Nov 2021 21:40:37 +0500 Subject: [PATCH] Add prompt to tag name menu --- dwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dwm.c b/dwm.c index 4b1eb3c..49f0cee 100644 --- a/dwm.c +++ b/dwm.c @@ -1248,8 +1248,8 @@ nametag(const Arg *arg) { int i; errno = 0; // popen(3p) says on failure it "may" set errno - if(!(f = popen("rofi -dmenu", "r"))) { - fprintf(stderr, "polytreewm: popen 'rofi -dmenu' failed%s%s\n", errno ? ": " : "", errno ? strerror(errno) : ""); + if(!(f = popen("rofi -dmenu -p \"Tag name\"", "r"))) { + fprintf(stderr, "polytreewm: popen 'rofi -dmenu -p \"Tag name\"' failed%s%s\n", errno ? ": " : "", errno ? strerror(errno) : ""); return; } if (!(p = fgets(name, TAGS_CUSTOM_NAME_SIZE, f)) && (i = errno) && ferror(f))