Skip to content

feat(hyprland/workspaces): grouping icons#4861

Open
eonphi wants to merge 3 commits intoAlexays:masterfrom
eonphi:master
Open

feat(hyprland/workspaces): grouping icons#4861
eonphi wants to merge 3 commits intoAlexays:masterfrom
eonphi:master

Conversation

@eonphi
Copy link
Copy Markdown

@eonphi eonphi commented Feb 14, 2026

This PR allows the hyprland/workspaces to group icons of the same type, most recently suggested by #4791.
There's two new config values for the module: window-rewrite-group-threshold determines the threshold at which grouping happens (including 1 should the user want that.. for consistency with singular icons, maybe), while set to 0 (default) no grouping will happen; window-rewrite-group-format is the formatting string for the icon groups, defaults to a simple {icon}×{count}, and with pango's markup can do things such as {icon}<span rise='3000' font_size='90%'>{count}</span> (a nicer-to-the-eyes alternative to baseline_shift=superscript), just as an example. I've attached three screenshots with no grouping, default with threshold 2, and the above span format string as an example.

no group (3)

group default example

group superscript example

Copy link
Copy Markdown
Contributor

@khaneliman khaneliman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and seems to work. Like the concept

khaneliman added a commit to khaneliman/khanelinix that referenced this pull request Feb 17, 2026
@Alexays
Copy link
Copy Markdown
Owner

Alexays commented Feb 28, 2026

Can you add the options to the man? 🙏

@eonphi
Copy link
Copy Markdown
Author

eonphi commented Mar 10, 2026

@Alexays sure! Added the man page entries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants