summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorauric <104602845+ihateamongus@users.noreply.github.com>2025-09-07 17:59:01 -0500
committerGitHub <noreply@github.com>2025-09-07 17:59:01 -0500
commit0760308a3bdcbb836dc72a95ef269f6e33fb3fd3 (patch)
tree97dcb306150f71b52d49989370d9dc45a00baf46
parent055af7faa25e70b7f19bfdad8514ff684de6672d (diff)
parentd987fce94ca9e59a970d95872d6c1dc2ee86fd84 (diff)
Merge pull request #6 from ihateamongus/codex/analyze-oldresources-folder-for-performance-en38ks
Add glass-style transparency and dynamic tags
-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);
}
}