LIVE
Loading live headlines…
Home Trending World Technology Entertainment Gaming Sports Music Science Lifestyle Business About Contact
c/unixart by u/pfr 3d ago reddit.com

[neuwm] motif decorations

2 upvotes 0 comments
*Cross-posted from [r/unixart](https://reddit.com/r/unixart/comments/1teunlq/neuwm_motif_decorations/) by u/Ramiferous*

**OP's comment:**

Probably more of a layup, and still nowhere near as cool as [shod](https://www.reddit.com/r/unixart/comments/o5oiv8/shod_yet_another_shod_showcase/) by u/narrow_assignment but it's getting there.

window decorations painstakingly stolen from `shod` by manually cutting up screenshots.

`shod` generates it's decoration at runtime from a single base colour using HSY colour math. I tried to replicate this in `neuwm` but struggled to get the decorations looking perfect. So I decided to just pull in PNG assets at compile time via the `neuswc` decor parts API, resulting in pixel-perfect control over the bevel geometry, including the (currently non-functional) button ornaments. The tradeoff is a recompile to change themes, but the visual quality is worth it.

I have also included a version without titlebars, similar to `emwm` [\> screenshot](https://codeberg.org/pfr/decor/raw/branch/main/motif/motif-notitle/motif-notitle.png)
Visit source Open discussion