projects
/
dwm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increased font size for status bar and dmenu.
[dwm]
/
dwm.c
diff --git
a/dwm.c
b/dwm.c
index
47237ea
..
f20ee79
100644
(file)
--- 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
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=14 < /dev/null", "r"))) {
fprintf(stderr, "dwm: popen 'dmenu < /dev/null' failed%s%s\n", errno ? ": " : "", errno ? strerror(errno) : "");
return;
}
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)
{
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=14 -i -sb red -p \"Quit DWM?\"", "r");
if(pp != NULL) {
char buf[1024];
if (fgets(buf, sizeof(buf), pp) == NULL) {
if(pp != NULL) {
char buf[1024];
if (fgets(buf, sizeof(buf), pp) == NULL) {