waybar-dwl-window(5)
๐ฆ waybar-dwl-window(5) โ the dwl window module, bestie edition
okay so this is the manual page for the waybar-dwl-window module, and it lives in section 5 (File Formats Manual) of the waybar docs. it's giving niche but iconic, and honestly? we're obsessed. let's get into it ๐
โจ NAME โจ
waybar โ the dwl window module ๐ช
๐ธ DESCRIPTION ๐ธ
the window module literally just displays the title of the currently focused window in DWL. that's it. that's the whole vibe. main character window title energy, no cap โจ
๐ CONFIGURATION ๐
you address this one by dwl/window โ that's its little address in your config, its whole identity fr fr.
here's every single knob you can turn, and yes bestie, we're doing all of them, no skipping ๐
formatโ typeof:string; default:{title}โ this is the format, aka how the information should actually be displayed. the blueprint for the glow-up.rotateโ typeof:integerโ a positive value rotates the text label, and the rotation goes in 90 degree increments. so like, a full spin is4. math is math ๐max-lengthโ typeof:integerโ the maximum length in characters the module should display. she's capping the word count.min-lengthโ typeof:integerโ the minimum length in characters the module should accept. the bare minimum, literally.alignโ typeof:floatโ where the label sits inside the module.0is left-aligned,1is right-aligned. heads up: if the module is rotated, it follows the flow of the text instead. it's fluid like that ๐ซjustifyโ typeof:stringโ how the text sits inside the module's label. your options are'left','right', or'center'. pick your fighter ๐on-clickโ typeof:stringโ command to run when you click on the module.on-click-middleโ typeof:stringโ command to run when you middle-click on the module using the mousewheel. yep, that click counts too.on-click-rightโ typeof:stringโ command to run when you right-click on the module.on-updateโ typeof:stringโ command to run when the module gets updated. she's refreshed โจon-scroll-upโ typeof:stringโ command to run when you scroll up on the module.on-scroll-downโ typeof:stringโ command to run when you scroll down on the module.smooth-scrolling-thresholdโ typeof:doubleโ the threshold to be used when scrolling. so your scrolls don't go feral.tooltipโ typeof:bool; default:trueโ option to disable the tooltip on hover. yes, the default is tooltips ON, so if you want them gone you gotta say so.rewriteโ typeof:objectโ rules to rewrite the module format output. see rewrite rules for the whole tea ๐iconโ typeof:bool; default:falseโ option to hide the application icon.icon-sizeโ typeof:integer; default:24โ option to change the size of the application icon.expandโ typeof:bool; default:falseโ enables this module to consume all leftover space dynamically. greedy in the best way, she ate ๐
๐ฎ FORMAT REPLACEMENTS ๐ฎ
these are the little magic words you can drop into your format, and here's exactly what each one gives you:
{title}โ the title of the focused window.{app_id}โ theapp_idof the focused window.{layout}โ the layout of the focused window.
๐ง REWRITE RULES ๐ง
rewrite is an object where the keys are regular expressions and the values are rewrite rules that apply if the expression matches. the rules may contain references to captures of the expression โ yes, you can point back at what you caught, cute right? ๐ซถ
the regular expression and the replacement both follow ECMA-script rules. periodt.
if no expression matches, the format output is left unchanged. she simply stays as she is ๐
invalid expressions โ like mismatched parentheses, we've all been there ๐ญ โ are skipped.
๐ EXAMPLES ๐
here's a whole look, copy it, love it, make it yours:
"dwl/window": {
"format": "{}",
"max-length": 50,
"rewrite": {
"(.*) - Mozilla Firefox": "๐ $1",
"(.*) - zsh": "> [$1]"
}
}
look at those captures popping off. $1 said I'll take it from here ๐ฅ
๐ quick reminder before you go: invalid expressions are skipped, not screamed about. mismatched parentheses won't break your bar, they'll just silently not apply. so if a rewrite isn't working, double-check those parens bestie, iykyk.
and that's the whole page, bestie!! this was waybar-dwl-window(5), section 5, dated 2026-02-08 โ go forth and make your bar gorgeous, you absolute 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