summaryrefslogtreecommitdiff
path: root/dwm
diff options
context:
space:
mode:
Diffstat (limited to 'dwm')
-rw-r--r--dwm/config.def.h4
-rw-r--r--dwm/dwm.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/dwm/config.def.h b/dwm/config.def.h
index fb3a839..50ae8a6 100644
--- a/dwm/config.def.h
+++ b/dwm/config.def.h
@@ -13,7 +13,9 @@ static const char col_gray2[] = "#555555";
static const char col_gray3[] = "#dddddd";
static const char col_gray4[] = "#ffffff";
static const char col_cyan[] = "#66ccff";
-static const double baropacity = 0.85;
+#ifndef BAROPACITY
+#define BAROPACITY 0.85
+#endif
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
diff --git a/dwm/dwm.c b/dwm/dwm.c
index 21f352e..a48eb7d 100644
--- a/dwm/dwm.c
+++ b/dwm/dwm.c
@@ -280,6 +280,9 @@ static Window root, wmcheckwin;
/* configuration, allows nested code to access above variables */
#include "config.h"
+#ifndef BAROPACITY
+#define BAROPACITY 1.0
+#endif
static unsigned int scratchtag = 1 << LENGTH(tags);
@@ -1959,7 +1962,7 @@ updatebars(void)
CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa);
XDefineCursor(dpy, m->barwin, cursor[CurNormal]->cursor);
XMapRaised(dpy, m->barwin);
- setopacity(m->barwin, baropacity);
+ setopacity(m->barwin, BAROPACITY);
XSetClassHint(dpy, m->barwin, &ch);
}
}