Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE]: Cycle Master Window #140

Open
wstephenson opened this issue Oct 28, 2021 · 3 comments · May be fixed by #458
Open

[FEATURE]: Cycle Master Window #140

wstephenson opened this issue Oct 28, 2021 · 3 comments · May be fixed by #458
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@wstephenson
Copy link

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 wstephenson added the enhancement New feature or request label Oct 28, 2021
@gikari gikari added the help wanted Extra attention is needed label Oct 29, 2021
@achilleas-k
Copy link

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".

@ShubhamPatilsd
Copy link

ShubhamPatilsd commented Jul 19, 2022

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

@ghost
Copy link

ghost commented Sep 26, 2022

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.

@chonlon chonlon linked a pull request Dec 15, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants