domferr / tilingshell

Extend Gnome Shell with advanced tiling window management. Supports multiple monitors, Windows 11 Snap Assistant, Fancy Zones, customised tiling layouts and more.
https://extensions.gnome.org/extension/7065/tiling-shell/
GNU General Public License v2.0
519 stars 10 forks source link

[Feature Request] Add keybinding to switch between active layout #50

Open arylix opened 3 months ago

arylix commented 3 months ago

Describe the feature you'd like Thank you for the great extension! It would be nice to have a keybinding to select the active layout by cycling through all available layouts. This can currently only be done by clicking on the tray icon and selecting the layout that should be active.

domferr commented 3 months ago

Hey! Thank you for your suggestion! With this extension my focus is on extending default behavior of GNOME Shell or implement loved features from other OSs. Your idea would be something new, what would be a good default keybinding to select the active layout in your opinion? Of course allowing to customize it from the preferences.

arylix commented 3 months ago

Would SUPER + CTRL + Arrow Left / Arrow Right be a good option?

ebits21 commented 3 months ago

I suggested this in #36 as well 😉.

I think it's a great idea to accompany the other keyboard shortcuts which are working great.

I'm not sure what shortcut but something without conflicts would be good. Super + n, super + b?

Away from the computer so not sure if that conflicts.

Edit: if Super + alt is used to span tiles then super + ctrl for this makes sense!

DuckThom commented 3 months ago

I would also like this feature.

Perhaps in addition to a keyboard shortcut, would it also be possible to use the scrollwheel while holding a window + CTRL ? So you effectively scroll through the configured layouts.

domferr commented 3 months ago

Thank you guys for your feedback! A quick update for you. I'm going to publish a new update this week and then I'm going to start to work on this :partying_face:

Just a little mockup for you, feel free to share your thoughts! This feature will behave similarly to ALT+TAB: when the keyboard shortcut is pressed, the layouts are shown and you can cycle through them to select the layout: Group 6

I'm still not sure which default shortcut to choose, but it will be customizable.

arylix commented 3 months ago

This is exactly how I wanted it to be!

ebits21 commented 2 months ago

Looks good 😎

distefam commented 1 month ago

I mentioned in #117 that I'd elaborate on one of my frequent workflows that this would greatly facilitate:

My coding layout frequently looks something like this:

-------------
|  |   |----|
-------------

Two full-height windows then two half-height windows stacked on top of one another. The leftmost window is usually a browser window, the middle my code editor, and the right two are different terminal windows.

Another common layout I use (I'm on an ultrawide monitor) is this:

-------------
|  |     |  |
-------------

Three full-height windows with the center one being larger. I generally have the left two windows the same as above (browser, code editor). Then, the rightmost window is frequently some sort of documentation.

I frequently switch between these two layouts while working.

dpriedel commented 3 weeks ago

I think this feature would be a great addition as it would eliminate most mouse usage.

I like the mock-up.

I suggest <Super><tab> as the hot key.