diff options
| author | auric <104602845+ihateamongus@users.noreply.github.com> | 2025-09-07 18:12:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-07 18:12:43 -0500 |
| commit | 9e19620c687158b2611e73249d32bbd196a84b4f (patch) | |
| tree | a3735d12b980bfb914c3d52d832dbf2482c64bd4 /dwm/dwm.c | |
| parent | 97dc9522e3e430bfb47aacdb080ac733fc146f76 (diff) | |
| parent | 65edb9b634e62fdf10abd7fff4794e4501202567 (diff) | |
Merge pull request #8 from ihateamongus/codex/analyze-oldresources-folder-for-performance-rkq2ye
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
@@ -314,6 +314,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]; }; |
