Custom CFFI based diagonal separator #4471
LordMZTE
started this conversation in
Show and tell
Replies: 1 comment
-
|
I made the transition be a little nicer than a straight line, now it's got those spikes on it similar to my logo. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've made a CFFI-module that acts as a 45-degree separator between modules. I've previously used a
custom/...module withtextset to" █", but this had several disadvantages:This thing currently lives in my dotfiles. Here's the code: https://git.mzte.de/LordMZTE/dotfiles/src/commit/631339f9dd9f09e0b37aa96b694ddd65003eb426/plugins/mzte-waybar/src/separator.zig
It's far from production-ready. It only works with horizontal bars, the angle isn't configurable and it doesn't hide itself when the module hides (definitely possible, though, but annoying since the next separator would have to adopt the color of the module a few places over), but perhaps someone could pick up from here 😉
(Also the way it draws the background of adjacent modules is very cursed API abuse... Not stable at all lol)
Beta Was this translation helpful? Give feedback.
All reactions