diff options
| author | auric <104602845+ihateamongus@users.noreply.github.com> | 2025-09-07 19:12:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-07 19:12:26 -0500 |
| commit | 8661540682391f5f6db33a86747028d90dda09ed (patch) | |
| tree | 4061ec1e88b608bfaab2b0fabbd0c5a9c9a955bc /dwm/dwm.c | |
| parent | 5cf3a788d2335d79c2e26c133f013c994f035ad7 (diff) | |
| parent | 9717eef7ca42d4c912aa082f6e05dd6a3f0beac6 (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.c | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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]; }; |
