Bismuth-Forge / bismuth

KDE Plasma add-on, that tiles your windows automatically and lets you manage them via keyboard, similarly to i3, Sway or dwm.
https://bismuth-forge.github.io/bismuth/
Other
2.41k stars 92 forks source link

feat: Add VerticalTileLayout #408

Open defer opened 2 years ago

defer commented 2 years ago

Summary

A Vertical tiling layout which is tailored for portrait orientated monitors but might have use cases in landscape as well.

The intended behavior is for the master area to take a fixed (but configurable via shortcut) percentage of the screen and for the remaining panes to split the remaining space. Multiple masters are supported and will share the master area equally.

An example of two masters, followed by a stack of two panels:

  ---------
 |         |
 |   M1    |
 |         |
 | ------- |
 |         |
 |   M2    |
 |         |
  ---------
 |    1    |
  ---------
 |    2    |
  ---------

The layout is disabled by default.

Breaking Changes

No

UI Changes

Before After
Before, there was nothing... after

Test Plan

  1. Go to layouts, enable vertical tile, apply.
  2. Change to vertical tile.
  3. Presto.

Related Issues

Closes #397

gikari commented 2 years ago

A Vertical tiling layout which is tailored for portrait orientated monitors but might have use cases in landscape as well.

Since its intended purpose is for using with rotated vertical monitors, is it possible to theoretically achieve the behavior of this layout, using an existing one, but rotating it?

defer commented 2 years ago

I guess it could be achieved if a rotated tile layout kept the non-master stack vertical rather than horizontal but didn't want to introduce such breakage.

krshrimali commented 2 years ago

I love this! Thanks for your work, @defer! @gikari - would love if this can be merged (if it looks okay to you and if you have the time) <3