Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Master layout ability to cycle through stack

Open Mikmert opened this issue 2 years ago • 2 comments
trafficstars

Add a new option to switch master window with the next or previous on stack. But keep the focus on master.

Consider the following example layout with * denoting the currently focused window: Next window on stack

+-----------+-----------+
|           |     B     |
|           +-----------+
|     A*    |     C     |
|           +-----------+
|           |     D     |
+-----------+-----------+

Next window on stack

+-----------+-----------+
|           |     C     |
|           +-----------+
|     B*    |     D     |
|           +-----------+
|           |     A     |
+-----------+-----------+

Next window on stack

+-----------+-----------+
|           |     D     |
|           +-----------+
|     C*    |     A     |
|           +-----------+
|           |     B     |
+-----------+-----------+

Previous window on stack

+-----------+-----------+
|           |     C     |
|           +-----------+
|     B*    |     D     |
|           +-----------+
|           |     A     |
+-----------+-----------+

Mikmert avatar Dec 30 '22 11:12 Mikmert

how would this behave with multiple masters?

vaxerski avatar Dec 30 '22 11:12 vaxerski

I have not used multiple masters. The most intuitive solution I think would be to swap the focused master with next or previous on stack.

+-----------+-----------+
|     A*    |     B     |
|           +-----------+
+-----------+     C     |
|           +-----------+
|     E     |     D     |
+-----------+-----------+

Next window on stack

+-----------+-----------+
|     B*    |     C     |
|           +-----------+
+-----------+     D     |
|           +-----------+
|     E     |     A     |
+-----------+-----------+

Swap focus

+-----------+-----------+
|     B     |     C     |
|           +-----------+
+-----------+     D     |
|           +-----------+
|     E*    |     A     |
+-----------+-----------+

Next window on stack

+-----------+-----------+
|     B     |     D     |
|           +-----------+
+-----------+     A     |
|           +-----------+
|     C*    |     E     |
+-----------+-----------+

Mikmert avatar Dec 30 '22 12:12 Mikmert

This would be awesome

ibrahimkettaneh avatar Dec 21 '23 14:12 ibrahimkettaneh