postmodernpostmodern
Mar 2, 2026, 3:41 AMCurrently, waybar "modules" (their term for widgets that are displayed in the bar) are written in C++ and are initiaized with optional JSON data from `~/.config/waybar/config.jsonc`.
Currently, waybar "modules" (their term for widgets that are displayed in the bar) are written in C++ and are initiaized with optional JSON data from `~/.config/waybar/config.jsonc`.
There's even a "custom" waybar module that supports various triggers/actions defined via JSON. A similar module could be written using mruby that calls DSL methods defined in a Ruby config file.
https://github.com/Alexays/Waybar/blob/master/src/modules/custom.cpp
https://man.archlinux.org/man/waybar-custom.5.en