Skip to content

Sort order of windows in hyprland/workspaces workspace-taskbar #4782

@codevogel

Description

@codevogel

I am loving hyprland/workspaces workspace-taskbar feature to show the active windows in a workspace.

I have one issue with it, however. It seems we cannot change the sort order of the icons, they seem to be added in order of when they were added. This can result in a situation where the left icon belongs to the right window on the workspace, and the right icon belongs to the left window, which is a bit confusing at times.

peck-2026-01-19_09-05-45.mp4

I'd like to be able to update the sort order of these icons (like we can with the workspaces themselves), so they follow a more logical structure.

For example, the left-most icon should be the leftmost, topmost window. If the left part of the workspace has a vertical split, it should appear as the second icon (from left to right).

The right-most icon should be the bottom-most, right-most window.

Any floating windows should be sorted at the end of the list.

In an extreme example; I'd like the icons to be ordered as such:

Image

Is there a setting I'm overlooking that would make this possible?
I believe this should be possible by parsing the output from hyprctl clients -j.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions