|
NAMEwaybar - hyprland workspaces module DESCRIPTIONThe workspaces module displays the currently used workspaces in hyprland compositor. CONFIGURATIONAddressed by hyprland/workspaces format:
format-icons:
window-rewrite:
Keys are the rules, while the values are the methods of
representation. Values may use the placeholders {class} and {title} to use the
window's original class and/or title respectively. Rules may specify
`class<...>`, `title<...>`, or both in order to fine-tune the
matching. You may assign an empty value to a rule to have it ignored from
generating any representation in workspaces.
window-rewrite-default: typeof: string
default: "?" The default method of representation for a workspace's window. This will be used for windows whose classes do not match any of the rules in window-rewrite. format-window-separator:
show-special:
special-visible-only:
persistent-only:
all-outputs:
active-only:
move-to-monitor:
Otherwise, the workspace will open on the monitor where
it was previously assigned. Analog to using `focusworkspaceoncurrentmonitor`
dispatcher instead of `workspace` in Hyprland.
ignore-workspaces:
sort-by:
If set to name, workspaces will sort by name. If set to
id, workspaces will sort by id. If set to special-centered, workspaces will
sort by default with special workspaces in the center. If none of those,
workspaces will sort with default behavior.
expand:
FORMAT REPLACEMENTS{id}: id of workspace assigned by compositor {name}: workspace name assigned by compositor {icon}: Icon, as defined in format-icons. ICONSAdditional to workspace name matching, the following format-icons can be set.
EXAMPLES"hyprland/workspaces": {
"format": "{name}: {icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"active": "",
"default": ""
},
"persistent-workspaces": {
"*": 5, // 5 workspaces by default on every monitor
"HDMI-A-1": 3 // but only three on HDMI-A-1
}
}
"hyprland/workspaces": {
"format": "{name}: {icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"active": "",
"default": ""
},
"persistent-workspaces": {
"*": [ 2,3,4,5 ], // 2-5 on every monitor
"HDMI-A-1": [ 1 ] // but only workspace 1 on HDMI-A-1
}
}
"hyprland/workspaces": {
"format": "{name}n{windows}",
"format-window-separator": "n",
"window-rewrite-default": "",
"window-rewrite": {
"title<.*youtube.*>": "", // Windows whose titles contain "youtube"
"class<firefox>": "", // Windows whose classes are "firefox"
"class<firefox> title<.*github.*>": "", // Windows whose class is "firefox" and title contains "github". Note that "class" always comes first.
"foot": "", // Windows that contain "foot" in either class or title. For optimization reasons, it will only match against a title if at least one other window explicitly matches against a title.
"code": "",
"title<.* - (.*) - VSCodium>": "codium $1" // captures part of the window title and formats it into output
}
}
"hyprland/workspaces": {
// Formatting omitted for brevity
"ignore-workspaces": [
"(special:)?chrome-sharing-indicator"
]
}
Style
|