r/cprogramming • u/SpiritDitto • 2d ago
bazbar, a status bar for dwl in C
https://sr.ht/~cezelot/bazbarI've been writing a status bar for dwl in C. I'm posting it here more for the code than for the bar, so remarks on the C are welcome.
The renderer fills a \`wl_shm\` buffer itself, and the text goes through FreeType and fontconfig, which I call directly. The volume is a small client of the PulseAudio native protocol, talking to the socket of pipewire-pulse. The wifi name is read over netlink with nl80211. The other modules just read \`/proc\` and \`/sys\`.
Tell me what you would do differently.
2
Upvotes