Skip to content

workspaceIconMap support workspace names as keys #1190

@AlexTrebs

Description

@AlexTrebs

Is your feature request related to a problem? Please describe.
I'm always frustrated when icons in the workspace bar swap between reboots. I use named special workspaces (special:discord, special:spotify, special:steam) and want to assign custom icons to each one via workspaceIconMap. This is currently impossible to do reliably because Hyprland assigns special workspaces negative numeric IDs based on creation order at runtime — whichever app opens first gets -98, the next gets -97, and so on. The order is non-deterministic, so the icon mapping is wrong after most reboots.

Describe the solution you'd like
Allow workspaceIconMap to accept workspace names as keys in addition to numeric IDs:
"bar.workspaces.workspaceIconMap": {
"special:discord": { "icon": "󰙯", "color": "#7289da" },
"special:spotify": { "icon": "󰓇", "color": "#1db954" },
"special:steam": { "icon": "󰓓", "color": "#c6d4df" }
}
Named keys should take priority over numeric keys when both could match. Existing numeric key behaviour should be unchanged.

Describe alternatives you've considered

  • Forcing consistent workspace creation order at startup via a script — doesn't work because Hyprland destroys empty special workspaces before apps finish loading
  • Using showApplicationIcons: true — shows correct icons but removes workspace numbers from regular workspaces, which is an unwanted trade-off

Additional context
This affects anyone using named special workspaces, which is a common Hyprland pattern for persistent app drawers (Discord, Spotify, Steam etc). The feature would make workspaceIconMap actually usable for this use case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions