bismuth icon indicating copy to clipboard operation
bismuth copied to clipboard

[FEATURE]: Cycle Master Window

Open wstephenson opened this issue 4 years ago • 3 comments
trafficstars

Summary

Be able to use a single short cut to cycle all visible windows into the master area, in the same way that Alt+Tab can be used repeatedly to focus any window.

A clear and concise description of what you want to happen

Currently we have 3 ways to move a window from the stack area to the master area: focus a different window via Meta+HJKL and Meta+Return, use Alt+Tab then Meta+Return, or use the mouse to drag it into the master area, swapping positions with the current occupant of the master area.

This direct selection of master occupancy requires the user to think 'where is the window that I want to focus now', then carry out the spatial Meta+HJKL focus move to the desired new master, then Meta+Enter. Or use the sequence of Alt+Tab, Meta+Enter

KWin's window 'tab order' (the stack or circular list of windows accessed via Alt+Tab) provides a good candidate for a 'Push Next Window to Master' action.

Use case: Billy is a coder and wants to flip between having StackOverflow and a Konsole with Vim in the master area. He also has a media player and a status monitor in the stack area. While StackOverflow is master, he presses a shortcut and the previous master window (Konsole) is made master again. He presses the same shortcut a second time and StackOverflow and Konsole change places, Konsole becoming master and StackOverflow going to the stack.

|       |[Konsole]
|   SO  |[ Music ]
|       |[Status ]

"Next Master"

|       |[  SO   ]
|Konsole|[ Music ]
|       |[Status ]

"Next Master"

|       |[Konsole]
|   SO  |[ Music ]
|       |[Status ]

The stack layout remains the same, this is not the same as rotating the layout.

A clear and concise description of any alternative solutions or features you've considered.

Perhaps this could be combined with Alt+Tab, where the focused window is always master. I think this might be too intrusive though.

Additional info

The default tab order would work like Alt+Tab's tab order, a stack structure where the selected item is popped from the stack and pushed on top of the previous master occupant. It may even be the same stack!

wstephenson avatar Oct 28 '21 19:10 wstephenson

Came here to see if this was planned or possible. I'd like this behaviour too.

I wonder if it could be a special shortcut like you mentioned (switch to next window + bring to master) or if it could be a layout option. For example, there could be an option for each layout that's "Keep focused window in master area".

achilleas-k avatar May 13 '22 10:05 achilleas-k

Upvote! This would be a great feature (I'm very used to this on dwm)

ShubhamPatilsd avatar Jul 19 '22 04:07 ShubhamPatilsd

It's very productive . Its helps me focus on master ,where i open xournal and switch instantly to browser without losing focus for a second from master. for me it Super + Return.

ghost avatar Sep 26 '22 11:09 ghost