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, where 0 is left-aligned and 1 is 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 type GtkMenu with id menu in 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 🌟

waybar(5), river(1)


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