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, where0is left-aligned and1is 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 typeGtkMenuwith idmenu. π yes, an actual element, of typeGtkMenu, with idmenuβ 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
- 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