waybar-sway-language(5)
β¨ waybar-sway-language β¨
okay bestie, this is the manual page for waybar-sway-language β the Sway language module for waybar, straight out of the File Formats Manual π it's a little one but it's mighty, and we're gonna go through every single crumb together, no skipping π«Ά
πΈ NAME πΈ
waybar sway language module β that's the whole vibe π
π¦ DESCRIPTION π¦
The language module displays the current keyboard layout in Sway. that's it, that's the whole job, and it does it beautifully β¨
π CONFIGURATION π
You address this module as sway/language in your config. say its name and it shall appear π
formatβ typeof:string, default:{}. The format, how layout should be displayed. like, how do you want your keyboard layout to look on screen bestie πhide-single-layoutβ typeof:bool, default:false. Defines visibility of the module if a single layout is configured. so if you only have one layout going on, do you even want the module showing?? this decides that fr fr πtooltip-formatβ typeof:string, default:{}. The format, how layout should be displayed in tooltip. same energy asformatbut for the little hover moment β¨tooltipβ typeof:bool, default:true. Option to disable tooltip on hover. default is on, so hover away, but you can turn it off if that's your thing πmenuβ typeof:string. Action that popups the menu. boop, a menu appears πmenu-fileβ typeof:string. Location of the menu descriptor file. There need to be an element of type
GtkMenu with id menu
β οΈ no cap, if thatGtkMenuelement with idmenuisn't in there, this is not gonna go how you want it to go, bestie π
menu-actionsβ typeof:array. The actions corresponding to the buttons of the menu. one action per button, match them up cute πexpandβ typeof:bool, default:false. Enables this module to consume all left over space dynamically. main character energy β it takes up ALL the leftover room π
π FORMAT REPLACEMENTS π
these are the little placeholder besties you can drop into your format strings, iykyk β¨
{short}β Short name of layout (e.g."us"). Equals to{}. π{shortDescription}β Short description of layout (e.g."en").{long}β Long name of layout (e.g."English (Dvorak)").{variant}β Variant of layout (e.g."dvorak").{flag}β Country flag of layout. π³οΈ slay
π EXAMPLES π
here's the moment you've been waiting for, copy-paste royalty π
"sway/language": {
"format": "{}",
},
"sway/language": {
"format": "{short} {variant}",
}
π STYLE π
#language
and that's the whole page, periodt π this was waybar-sway-language(5), and it came to you from the 2026-02-08 era of the file formats manual β go forth and display your keyboard layouts, icon πβ¨π¦
π¦ 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