swanbar
A configurable status bar for the Sway window manager, rewritten in Clojure and compiled with GraalVM. It provides an elaborate async framework with multimethods and lots of configuration, with almost no real blocking, so it can ping HTTP endpoints and display results without affecting the synchronous data in the bar. It rate-limits requests with TTLs, supports click events, and persists state in msgpack so it survives restarts. One module pings OpenAI to generate inspirational quotes from a list of about two hundred topics. Built with Nix for reproducibility and runs at roughly 12-15 MB of RAM.
What it addresses
The author wanted extra functionality for the Swaybar in the Sway window manager, and a basic Bash version was too limited.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
swanbar
A configurable status bar for the Sway window manager, rewritten in Clojure and compiled with GraalVM. It provides an elaborate async framework with multimethods and lots of configuration, with almost no real blocking, so it can ping HTTP endpoints and display results without affecting the synchronous data in the bar. It rate-limits requests with TTLs, supports click events, and persists state in msgpack so it survives restarts. One module pings OpenAI to generate inspirational quotes from a list of about two hundred topics. Built with Nix for reproducibility and runs at roughly 12-15 MB of RAM.
Problem: The author wanted extra functionality for the Swaybar in the Sway window manager, and a basic Bash version was too limited.
Posted by @tombert · Original source ↗
Source text · @tombert · · Source ↗
I wanted some extra functionality for the Swaybar in the Sway Window Manager. I got a basic thing working with Bash, but I wanted more stuff, and so I rewrote it in Clojure with GraalVM.