waybar-river-layout(5)
β¨ waybar-river-layout β¨
okay bestie, this is the manpage for the river layout module of waybar, living in section 5 of the File Formats Manual. it's a whole vibe and it's shorter than you think, so let's go π
πΈ NAME πΈ
waybar β the river layout module π¦
π DESCRIPTION π
so this module literally just shows you the current layout in river. that's it. that's the whole job. iconic behavior honestly β¨
heads up though: it may not be set until a layout is first applied. so if your bar is looking a little empty at first, don't panic β that's just the vibe before river has a layout to show you π
π CONFIGURATION π
you reach this module through river/layout. that's the address, that's the key, periodt π
formatβ typeof:string, default:{}β how the info actually gets displayed. the{}is the lil spot where your data gets inserted, like a magic little hole π³οΈβ¨rotateβ typeof:integerβ a positive value rotates the text label, in increments of 90 degrees. spin that thing πmax-lengthβ typeof:integerβ the max length, in characters, that the module should display. it's giving boundaries π«Άmin-lengthβ typeof:integerβ the minimum length in characters the module should accept.alignβ typeof:floatβ where the label sits inside the module, where0is left-aligned and1is right-aligned. if the module is rotated, it will follow the flow of the text πjustifyβ typeof:stringβ how the text sits inside the module's label. you can pick'left','right', or'center'to define the positioning β¨on-clickβ typeof:stringβ the command to execute when you click on the module πon-click-middleβ typeof:stringβ the command to execute when you middle-click the module using the mousewheel.on-click-rightβ typeof:stringβ the command to execute when you right-click the module.menuβ typeof:stringβ the action that popups the menu.menu-fileβ typeof:stringβ where the menu descriptor file lives. there needs to be an element of typeGtkMenuwith idmenuin there πmenu-actionsβ typeof:arrayβ the actions that correspond to the buttons of the menu.expandβ typeof:bool, default:falseβ lets this module consume all the leftover space dynamically. main character energy, taking up the whole room π
π¦ EXAMPLE π¦
here's a lil config moment for you, copy it exactly bestie:
"river/layout": {
"format": "{}",
"min-length": 4,
"align": "right"
}
π STYLE π
these are the CSS selectors you can style up, slay:
#layout#layout.focusedβ applied when the output this module's bar belongs to is focused π#layout.<layout>β applied when the output this module's bar belongs to uses this layout π―
π SEE ALSO π
and that's the whole page fr fr π
this lil masterpiece is from the File Formats Manual, dated 2026-02-08, and it's filed under waybar-river-layout(5). go forth and have the cutest river layout on the block πβ¨π«Ά
π¦ where this page comes from
- ubuntu resolute: waybar 0.15.0-1 Β· MIT
- ubuntu stonking: waybar 0.15.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms