omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Window groups (tabs) support in Hyprland

Open pilgren opened this issue 8 months ago • 11 comments

Add Hyprland group support with theme styling

  • Added group window (tabs) support with SUPER + SHIFT + T keybinding
  • Added keybinding for SUPER + Tab to cycle through grouped windows
  • Implemented theme-aware group bar colors that match each theme

pilgren avatar Aug 20 '25 10:08 pilgren

Nice. See also https://github.com/basecamp/omarchy/pull/656

rafaelbernard avatar Aug 20 '25 22:08 rafaelbernard

For SUPER + TAB, something else is also claiming for that. :-P https://github.com/basecamp/omarchy/pull/652

rafaelbernard avatar Aug 20 '25 22:08 rafaelbernard

Can you record a video or show some screenshots of what this looks like?

dhh avatar Aug 22 '25 11:08 dhh

@rafaelbernard Ahh yes, I didn't see that other PR. I guess that the other PR has a bit more configurations than this one :smiley:

pilgren avatar Aug 22 '25 20:08 pilgren

@dhh Yes, of course.

Here are the tabs in a couple of the different themes:

Tokyo Night: image

Catppuccin Latte: image

Everforest: image

pilgren avatar Aug 22 '25 20:08 pilgren

If you're interested in tabs, you might consider a sway-like approach: toggle all active windows into a single tab group, perfect when switching between an external monitor and a laptop on the go.

👉 Demo video: https://github.com/basecamp/omarchy/discussions/326

Benefit: it reuses the existing SUPER + ← / → bindings to navigate between grouped windows.

bastnic avatar Aug 22 '25 22:08 bastnic

@bastnic The sway-like approach also seems like a good way to do it. It's nice that it uses the SUPER + arrows to navigate the tabs :+1:

pilgren avatar Aug 23 '25 21:08 pilgren

I am currently playing with this. I also added bindings to move windows inside/outside the group and to jump directly to a specific tab. Something like:

# Tabbed windows toggle
bind = SUPER ALT, T, togglegroup

# Focus on another window in the group
bind = SUPER ALT, bracketleft, changegroupactive, b
bind = SUPER ALT, bracketright, changegroupactive, f
bind = SUPER ALT, 1, changegroupactive, 1
bind = SUPER ALT, 2, changegroupactive, 2
bind = SUPER ALT, 3, changegroupactive, 3
bind = SUPER ALT, 4, changegroupactive, 4
bind = SUPER ALT, 5, changegroupactive, 5
bind = SUPER ALT, 6, changegroupactive, 6
bind = SUPER ALT, 7, changegroupactive, 7
bind = SUPER ALT, 8, changegroupactive, 8
bind = SUPER ALT, 9, changegroupactive, 9

# TODO
#bind = SUPER ALT SHIFT, bracketleft, movegroupwindow, b
#bind = SUPER ALT SHIFT, bracketright, movegroupwindow, f

# Moving non-tabbed window inside a group
bind = SUPER ALT SHIFT, left, moveintogroup, l
bind = SUPER ALT SHIFT, right, moveintogroup, r
bind = SUPER ALT SHIFT, up, moveintogroup, u
bind = SUPER ALT SHIFT, down, moveintogroup, d

# Moving tabbed window outside the group
bind = SUPER ALT SHIFT CTRL, left, moveoutofgroup, l
bind = SUPER ALT SHIFT CTRL, right, moveoutofgroup, r
bind = SUPER ALT SHIFT CTRL, up, moveoutofgroup, u
bind = SUPER ALT SHIFT CTRL, down, moveoutofgroup, d

mfornasa avatar Aug 26 '25 14:08 mfornasa

In Sway it was amazing that inside tabbed group you could split window vertically or horizontally, so you would have 2 or more apps simultaneously

dkeysil avatar Sep 01 '25 09:09 dkeysil

Also would be cool to have contextual SUPER + arrow, because in Sway you can use the same SUPER + Right/Left to navigate inside tabbed group and just inside workspace

Here I see that we need to bind different key binding for navigating inside tabbed group

dkeysil avatar Sep 01 '25 10:09 dkeysil

I have updated the key bindings to avoid SUPER + TAB which is now used elsewhere.

I also added some of the same bindings as @mfornasa mentioned and support to navigate inside tabbed group with SUPER ALT + Right/Left as suggested by @dkeysil

Here is a small recording of how it looks:

https://github.com/user-attachments/assets/8402781e-c252-4846-8f87-d065c1b53da0

pilgren avatar Sep 06 '25 11:09 pilgren

Solved via #656

dhh avatar Oct 07 '25 15:10 dhh