What is the request?
When using the glazewm_workspaces widget together with the active_window widget, the active window title appears to the right of the entire workspace group.
For example, the current layout is effectively:
[Workspace 1 + app icons] [Workspace 2 + app icons] Active Window Title
This works, but visually the active window title feels detached from the workspace it belongs to. If Workspace 1 is focused and Workspace 2 is also populated, the active window title still appears after Workspace 2, which can make it unclear which workspace the title is associated with.
This is especially noticeable in a multi-monitor setup where each monitor has several workspaces and populated workspaces show app icons.
Why is it useful?
I would like the active/focused window title to appear inline with, or immediately beside, the focused workspace button.
Desired layout example:
[Workspace 1 + app icons | Active Window Title] [Workspace 2 + app icons]
Instead of:
[Workspace 1 + app icons] [Workspace 2 + app icons] Active Window Title
This would make the bar much easier to read at a glance because the active window title would be visually tied to the workspace it belongs to.
This would be useful for users who:
- Use multiple monitors
- Use multiple workspaces per monitor
- Show app icons for populated workspaces
- Use keyboard-driven workspace switching
- Want a compact bar where workspace state and active window context are visually connected
How could it be implemented?
One possible implementation would be to add an option to GlazewmWorkspacesWidget that allows the focused workspace button to render active window information.
Example configuration idea:
glazewm_workspaces:
type: glazewm.workspaces.GlazewmWorkspacesWidget
options:
monitor_exclusive: true
app_icons:
enabled_populated: true
enabled_active: true
enabled_focused: true
size: 16
max_icons: 4
hide_label: false
hide_duplicates: true
hide_floating: true
focused_window:
enabled: true
show_icon: true
show_title: true
max_length: 32
max_length_ellipsis: "..."
position: right
Another possible implementation would be to allow focused workspace labels to use active window placeholders, such as:
label_focused: "{name} {icons} {win[title]}"
Possible CSS classes could include:
label_focused: "{name} {icons} {win[title]}"
.glazewm-workspaces .ws-btn .focused-window
.glazewm-workspaces .ws-btn .focused-window-icon
.glazewm-workspaces .ws-btn .focused-window-title
I am not sure which implementation best fits YASB’s architecture, but the goal is to allow the active window title to be rendered as part of the focused workspace context rather than only as a separate widget placed after the full workspace list.
### Additional context
_No response_
What is the request?
When using the
glazewm_workspaceswidget together with theactive_windowwidget, the active window title appears to the right of the entire workspace group.For example, the current layout is effectively:
[Workspace 1 + app icons] [Workspace 2 + app icons] Active Window Title
This works, but visually the active window title feels detached from the workspace it belongs to. If Workspace 1 is focused and Workspace 2 is also populated, the active window title still appears after Workspace 2, which can make it unclear which workspace the title is associated with.
This is especially noticeable in a multi-monitor setup where each monitor has several workspaces and populated workspaces show app icons.
Why is it useful?
I would like the active/focused window title to appear inline with, or immediately beside, the focused workspace button.
Desired layout example:
[Workspace 1 + app icons | Active Window Title] [Workspace 2 + app icons]
Instead of:
[Workspace 1 + app icons] [Workspace 2 + app icons] Active Window Title
This would make the bar much easier to read at a glance because the active window title would be visually tied to the workspace it belongs to.
This would be useful for users who:
How could it be implemented?
One possible implementation would be to add an option to
GlazewmWorkspacesWidgetthat allows the focused workspace button to render active window information.Example configuration idea: