changegroupactive numeric index is off-by-one (Super+Alt+1 switches to window 2, not window 1)
System details
Omarchy 3.4.1
What's wrong?
Bug
The default keybindings in default/hypr/bindings/tiling-v2.conf for switching
to a specific window in a group by number are off-by-one:
bindd = SUPER ALT, code:10, Switch to group window 1, changegroupactive, 1
bindd = SUPER ALT, code:11, Switch to group window 2, changegroupactive, 2
...
Root Cause
The changegroupactive dispatcher passes the arg directly to CGroup::setCurrent(),
which uses 0-based indexing internally. So changegroupactive 1 switches to the window
at index 1 (the 2nd window), not the 1st.
Result:
- Super+Alt+1 → switches to window 2
- Super+Alt+2 → switches to window 3
- Window 1 is unreachable via any number binding
The Hyprland wiki documents the index as starting at 1, but the implementation is 0-based.
Fix
Shift the args down by 1:
bindd = SUPER ALT, code:10, Switch to group window 1, changegroupactive, 0
bindd = SUPER ALT, code:11, Switch to group window 2, changegroupactive, 1
bindd = SUPER ALT, code:12, Switch to group window 3, changegroupactive, 2
bindd = SUPER ALT, code:13, Switch to group window 4, changegroupactive, 3
bindd = SUPER ALT, code:14, Switch to group window 5, changegroupactive, 4
Environment
- Omarchy (latest), Hyprland 0.54.0
Claude suggested I report this little bug with window grouping, not sure if it's been caught already, or if it was only specific to my system. I updated from 3.3.3.
Hyprland bug. Will be fixed in 0.54.1 👍