Zlstatus: a minimal, event-driven status monitor for dwl/dwm, inspired by slstatus

Hey all,

I just finished my first real Zig project: zlstatus, a minimal, event-driven status monitor for dwl/dwm, inspired by slstatus.

It’s written in Zig in a very “C style” (no std lib), using epoll and ALSA directly. It updates once per minute and also instantly on volume change.

It works both on X11 (setting the root window name like slstatus) and on Wayland (writing to stdout, for use with patched dwl).

I use it every day and thought some folks here might appreciate it. Any feedback is welcome!

2 Likes

I’ve never tried to write Zig without the standard library! I think thats quite interesting. Was there anything you struggled to do, or was it more or less straightforward?

It wasn’t very difficult because I used the C standard library instead :upside_down_face:. I did this because I wanted to keep things as minimal and lightweight as possible. If the Zig standard library were more mature, I definitely would have used it!

1 Like