summaryrefslogtreecommitdiff
path: root/dwm/dwm.c
diff options
context:
space:
mode:
authorauric <104602845+ihateamongus@users.noreply.github.com>2025-09-07 18:04:30 -0500
committerGitHub <noreply@github.com>2025-09-07 18:04:30 -0500
commit97dc9522e3e430bfb47aacdb080ac733fc146f76 (patch)
tree3eb2fc4a7aa9a98007221b2c45680748ad6170ec /dwm/dwm.c
parent0760308a3bdcbb836dc72a95ef269f6e33fb3fd3 (diff)
parentec1ead58cc07c3e7df8921d5ba5376dd45b6acc3 (diff)
Merge pull request #7 from ihateamongus/codex/analyze-oldresources-folder-for-performance-yu4i2m
Add glass-style transparency and dynamic tags
Diffstat (limited to 'dwm/dwm.c')
-rw-r--r--dwm/dwm.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/dwm/dwm.c b/dwm/dwm.c
index a48eb7d..85b78f8 100644
--- a/dwm/dwm.c
+++ b/dwm/dwm.c
@@ -297,6 +297,23 @@ typedef struct {
static ColorShm *accentshm;
static char accentcol[8] = "#005577";
+#ifndef BAROPACITY
+#define BAROPACITY 1.0
+#endif
+
+static unsigned int scratchtag = 1 << LENGTH(tags);
+
+#define SHMNAME "/breathing_color_shm"
+typedef struct {
+ uint32_t magic;
+ uint32_t version;
+ volatile uint32_t seq;
+ char color[8];
+} ColorShm;
+
+static ColorShm *accentshm;
+static char accentcol[8] = "#005577";
+
/* compile-time check if all tags fit into an unsigned int bit array. */
struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; };