waybar-sway-mode(5)

✨ waybar-sway-mode(5) ✨

okay bestie, pull up a chair, we're reading the waybar-sway-mode page from the File Formats Manual πŸ’– it's short, it's iconic, and it's literally just one module, so let's go πŸ¦‹


🌸 NAME 🌸

waybar β€” the sway mode module πŸ‘‘


πŸ’œ DESCRIPTION πŸ’œ

The mode module displays the current binding mode of Sway. that's it, that's the whole vibe ✨


πŸŽ€ CONFIGURATION πŸŽ€

You address this one by sway/mode πŸ’…

  • format β€” typeof: string, default: {}. The format, how information should be displayed. On {} data gets inserted. 🫢 that curly-brace moment is where your actual mode text lands, no cap.
  • rotate β€” typeof: integer. Positive value to rotate the text label (in 90 degree increments). πŸ“
  • max-length β€” typeof: integer. The maximum length in character the module should display.
  • min-length β€” typeof: integer. The minimum length in characters the module should accept.
  • align β€” typeof: float. The alignment of the label within 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. The alignment of the text within the module's label, allowing options 'left', 'right', or 'center' to define the positioning.
  • on-click β€” typeof: string. Command to execute when clicked on the module.
  • on-click-middle β€” typeof: string. Command to execute when middle-clicked on the module using mousewheel.
  • on-click-right β€” typeof: string. Command to execute when you right-click on the module.
  • on-update β€” typeof: string. Command to execute when the module is updated.
  • on-scroll-up β€” typeof: string. Command to execute when scrolling up on the module.
  • on-scroll-down β€” typeof: string. Command to execute when scrolling down on the module.
  • smooth-scrolling-threshold β€” typeof: double. Threshold to be used when scrolling.
  • tooltip β€” typeof: bool, default: true. Option to disable tooltip on hover. πŸ™ˆ yeah it's phrased as the option to disable it, that's just how it is, don't come for me.
  • menu β€” typeof: string. Action that popups the menu.
  • menu-file β€” typeof: string. Location of the menu descriptor file. There need to be an element of type GtkMenu with id menu. πŸ’€ yes, an actual element, of type GtkMenu, with id menu β€” that's the requirement, periodt.
  • menu-actions β€” typeof: array. The actions corresponding to the buttons of the menu.
  • expand β€” typeof: bool, default: false. Enables this module to consume all left over space dynamically. πŸ”₯ main character energy, it takes up the whole bar if you let it.

⭐ EXAMPLES ⭐

here's the look, copy it exactly bestie:

"sway/mode": {
     "format": " {}",
     "max-length": 50
}

🧚 STYLE 🧚

  • #mode

that's your selector, go wild πŸ’…


and that's the whole page!! source/version situation: this is waybar-sway-mode(5) dated 2026-02-08, fr fr πŸ’– you're officially a sway mode module expert now, go slay those binding modes πŸ‘‘βœ¨

πŸ“¦ where this page comes from