gerritdevriese / kzones

KDE KWin Script for snapping windows into zones
https://store.kde.org/p/1909220
GNU General Public License v3.0
240 stars 14 forks source link

[Feature request] Switch between windows on the same zone #5

Closed juacq97 closed 1 year ago

juacq97 commented 1 year ago

Hi! Loving your extension!! After trying other scripts I feel this is the best combination between tiling and stacking window management yet. There's a feature I'd like to see implemented, you can put many windows on the same zone, the windows will be one on top of the other, it could be possible to switch between windows on the same zone with a keybinding (even better, a dbus command)? This will be something similar to have tabs like i3/sway and very useful at least to me. I don't know how difficult that could be, or even if it's possible, but I would love to see that feature on kzones

gerritdevriese commented 1 year ago

Hi, thanks for the suggestion, I added the following shortcuts:

Shortcut Default Binding
Switch to previous window in current zone Ctrl+Alt+Down
Switch to next window in current zone Ctrl+Alt+Up

It's currently in the test branch, so you can already try it if you want.

As for dbus, you should be able to invoke KWin shortcuts like this:

qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "KZones: Toggle OSD"