diff options
| author | auric <104602845+ihateamongus@users.noreply.github.com> | 2025-09-07 18:04:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-07 18:04:30 -0500 |
| commit | 97dc9522e3e430bfb47aacdb080ac733fc146f76 (patch) | |
| tree | 3eb2fc4a7aa9a98007221b2c45680748ad6170ec /dwm | |
| parent | 0760308a3bdcbb836dc72a95ef269f6e33fb3fd3 (diff) | |
| parent | ec1ead58cc07c3e7df8921d5ba5376dd45b6acc3 (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')
| -rw-r--r-- | dwm/config.def.h | 6 | ||||
| -rw-r--r-- | dwm/dwm.c | 17 |
2 files changed, 20 insertions, 3 deletions
diff --git a/dwm/config.def.h b/dwm/config.def.h index 50ae8a6..c94f430 100644 --- a/dwm/config.def.h +++ b/dwm/config.def.h @@ -30,9 +30,9 @@ static const Rule rules[] = { * WM_CLASS(STRING) = instance, class * WM_NAME(STRING) = title */ - /* class instance title tags mask isfloating monitor */ - { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, + /* class instance title tags mask isfloating monitor */ + { NULL, NULL, "Picture in picture", 0, 1, -1 }, + { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, }; /* layout(s) */ @@ -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]; }; |
