yambar-modules-i3(5)
π yambar-modules-i3 β bestie edition πΈ
okay so this is yambar-modules-i3, from section 5 of the manual (File Formats Manual, if you're keeping score), and no cap it's the glow-up your bar has been waiting for β¨
β¨ NAME β¨
i3 β this module monitors i3 and sway workspaces πͺπ
π¦ DESCRIPTION π¦
okay so here's the thing that makes this module lowkey different from every other module: normally content is just a single particle, right? but the i3 module's content is an associative array mapping i3/sway workspace names to a particle. it's giving β¨organized chaosβ¨ but like, the good kind π
you can add an empty workspace name, "", as a catch-all workspace particle. the i3 module will fallback to this entry if it cannot find the workspace name in the content map. so it's literally your safety net, your ride-or-die default π«Ά
it also recognizes the special name current, which always represents the currently focused workspace. on Sway, this can be used together with the application and title tags to replace the X11-only xwindow module β slay, we love a cross-platform moment π
π TAGS π
here's the whole tag lineup, no skips, no cuts π
nameβ string β the workspace namevisibleβ bool β true if the workspace is currently visible (on any output)focusedβ bool β true if the workspace is currently focusedurgentβ bool β true if the workspace has the urgent flag setemptyβ bool β true if the workspace is empty (Sway only)stateβ string β one ofurgent,focused,unfocusedorinvisible(note:unfocusedis when it is visible, but neither focused nor urgent)applicationβ string β name of application currently focused on this workspace (Sway only β use thexwindowmodule in i3)titleβ string β this workspace's focused window's titlemodeβ string β the name of the current mode
π CONFIGURATION π
all the knobs and dials, bestie π§
contentβ associative array β required β β unlike other modules,contentis an associative array mapping workspace names to particles. use""to specify a default fallback particle, orcurrentfor the currently active workspace.sortβ enum β optional β how to sort the list of workspaces; one ofnone,native,ascendingordescending, defaults tonone. usenativeto sort numbered workspaces only.strip-workspace-numbersβ bool β optional β if true,N:prefixes will be stripped from workspace names. useful together withsort, to have the workspace order fixed.persistentβ list of strings β optional β persistent workspaces. i.e. workspaces that are never removed, even if empty. they're immortal fr fr πleft-spacingβ int β optional β space, in pixels, on the left-side of each rendered workspace particleright-spacingβ int β optional β space, in pixels, on the right-side of each rendered workspace particlespacingβ int β optional β short-hand for setting bothleft-spacingandright-spacingat once. two birds, one icon π
β EXAMPLES β
this renders all workspace names, with an * indicating the currently focused one. it also renders the currently focused application name and window title. the way this config eats, honestly ππ₯
bar:
left:
- i3:
content:
"":
map:
default: {string: {text: "{name}"}}
conditions:
state == focused: {string: {text: "{name}*"}}
current: { string: {text: "{application}: {title}"}}
π«Ά SEE ALSO π«Ά
yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decorations(5)
and that's the whole page bestie π this one's from the File Formats Manual crowd, dated 2024-04-22, and it's yambar-modules-i3(5) β go forth and make your bar iconic π§β¨
π¦ where this page comes from
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms