X-Git-Url: http://git.subgeniuskitty.com/dwm/.git/blobdiff_plain/8f6a31e7c64fa135f397e110caeb785979eaf535..853da2490f984c88ddbdfb4ef68473c5905b3461:/dwm.c diff --git a/dwm.c b/dwm.c index 47237ea..2eed755 100644 --- a/dwm.c +++ b/dwm.c @@ -1277,7 +1277,9 @@ nametag(const Arg *arg) { int i; errno = 0; // popen(3p) says on failure it "may" set errno - if(!(f = popen("dmenu < /dev/null", "r"))) { + // TODO: Create a central location for the dmenu font specification. + // It should not be hardcoded in multiple locations. + if(!(f = popen("dmenu -fn monospace:size=12 < /dev/null", "r"))) { fprintf(stderr, "dwm: popen 'dmenu < /dev/null' failed%s%s\n", errno ? ": " : "", errno ? strerror(errno) : ""); return; } @@ -1358,7 +1360,9 @@ quit(const Arg *arg) void quitprompt(const Arg *arg) { - FILE *pp = popen("echo -e \"no\nrestart\nyes\" | dmenu -i -sb red -p \"Quit DWM?\"", "r"); + // TODO: Create a central location for the dmenu font specification. + // It should not be hardcoded in multiple locations. + FILE *pp = popen("echo -e \"no\nrestart\nyes\" | dmenu -fn monospace:size=12 -i -sb red -p \"Quit DWM?\"", "r"); if(pp != NULL) { char buf[1024]; if (fgets(buf, sizeof(buf), pp) == NULL) {