Skip to content

[feature] Limit the number of windows per workspace shown in hyprland/workspaces #4980

@xiyori

Description

@xiyori

I only need to show 1 window icon per workspace either with window-rewrite or taskbar mode. There are pull requests that do something like this, e.g. #4694

Summary

  • add max-windows option
  • limit the number of windows by this option
  • the windows shown can be just the first max-windows clients returned by the compositor

Configuration Examples

"hyprland/workspaces": {
    "format": "{windows}",
    "max-windows": 1,
    "workspace-taskbar": {
        "enable": true
    }
}
"hyprland/workspaces": {
    "format": "{windows}",
    "max-windows": 1,
    "window-rewrite": {
        "class<kitty> title<rmpc>": "󰎇"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions