summaryrefslogtreecommitdiff
path: root/dwm/dwm.c
diff options
context:
space:
mode:
authorauric <104602845+ihateamongus@users.noreply.github.com>2025-09-07 19:12:26 -0500
committerGitHub <noreply@github.com>2025-09-07 19:12:26 -0500
commit8661540682391f5f6db33a86747028d90dda09ed (patch)
tree4061ec1e88b608bfaab2b0fabbd0c5a9c9a955bc /dwm/dwm.c
parent5cf3a788d2335d79c2e26c133f013c994f035ad7 (diff)
parent9717eef7ca42d4c912aa082f6e05dd6a3f0beac6 (diff)
Merge pull request #9 from ihateamongus/codex/analyze-oldresources-folder-for-performance-zm9nfy
Add glass-style transparency and dynamic tags
Diffstat (limited to 'dwm/dwm.c')
-rw-r--r--dwm/dwm.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/dwm/dwm.c b/dwm/dwm.c
index 515cd33..7a15419 100644
--- a/dwm/dwm.c
+++ b/dwm/dwm.c
@@ -299,6 +299,25 @@ typedef struct {
static ColorShm *accentshm;
static char accentcol[8] = "#005577";
+#ifndef BAROPACITY
+#define BAROPACITY 1.0
+#endif
+
+/* tag used for scratchpad clients */
+static const 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;
+
+/* state for the shared accent color */
+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]; };