gerritdevriese / kzones

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

Rotate Layouts for Vertical Monitors #71

Open irasponsible opened 2 months ago

irasponsible commented 2 months ago

Similar to #4, but I think distinct enough to put in a separate request.

The idea is to be able to define one layout; say, 70%/30%.

┌─────────────┬────┐
│             │    │
│             │    │
│             │    │
└─────────────┴────┘

And, when it is shown on a monitor that is taller than it is wide, it rotates 90 degrees counter-clockwise, so the same layout can be used on a vertical monitor.

┌─────────┐
│         │
├─────────┤
│         │
│         │
│         │
│         │
└─────────┘

A 70/30 split is a useful layout for both Horizontal and Vertical layouts, but to use it on both screens, I'd need to define it twice (and the same for every other layout). Currently, the same layout on a vertical display looks more like this, which makes both windows far too skinny.

┌──┬──────┐
│  │      │
│  │      │
│  │      │
│  │      │
│  │      │
└──┴──────┘

At the moment, the work-around is to define multiple layouts, but that gets a bit cumbersome if you have multiple regularly-used layouts, and makes the switcher for both screens full of "useless" options.

imthenachoman commented 4 weeks ago

If there was multi monitor layouts, then couldn't you just create a vertical layout for the vertical monitor?