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

[FEATURE]: Resize to symetric sizes shortcut #415

Open polirritmico opened 2 years ago

polirritmico commented 2 years ago

Summary

The idea is if you press the shortcut all windows on the active desktop resize to symmetrical sizes. Many times I find myself in the situation of wanting to "reset" the distribution of the layout and this IMHO should improve, or at least accommodate some workflows avoiding spending time resizing windows.

A clear and concise description of what you want to happen

To explain the desired behavior I think it is easier to show some examples: (horizontal and vertical proportion values aren't related)

Tile layout

Before

   +--------------------------------------------------------------+
   |                                     |                        |
   |                                     |                        |
   |                                     |                        |
   |                                     |                        |
   |                                     |           W1           |
   |                                     |                        |
   |                                     |                        |
   |           Main window               |                        |
   |                                     |                        |
   |                                     |                        |
   |                                     +------------------------+
   |                                     |                        |
   |                                     |           W2           |
   |                                     |                        |
   +--------------------------------------------------------------+

After

                   1              :              1
  +--------------------------------------------------------------+
  |                               |                              |
  |                               |                              |
  |                               |                              |
  |                               |              W1              | 1
  |                               |                              |
  |                               |                              |
2 |           Main window         +------------------------------+
  |                               |                              |
  |                               |                              |
  |                               |              W2              | 1
  |                               |                              |
  |                               |                              |
  |                               |                              |
  +--------------------------------------------------------------+

Before

   +--------------------------------------------------------------+
   |                                       |                      |
   |                                       |                      |
   |                                       |                      |
   |                                       |                      |
   |                                       |                      |
   |                                       |                      |
   |                                       |         W1           |
   |                                       |                      |
   |                  Main                 |                      |
   |                                       |                      |
   |                                       |                      |
   |                                       |                      |
   |                                       |                      |
   |                                       +----------------------+
   |                                       |         W2           |
   |                                       +----------------------+
   |                                       |         W3           |
   +--------------------------------------------------------------+

After

                  1                :               1
   +--------------------------------------------------------------+
   |                               |                              |
   |                               |                              |
   |                               |              W1              | 1
   |                               |                              |
   |                               |                              |
   |                               +------------------------------+
   |                               |                              |
   |                               |                              |
 3 |              Main             |              W2              | 1
   |                               |                              |
   |                               |                              |
   |                               +------------------------------+
   |                               |                              |
   |                               |                              |
   |                               |              W3              | 1
   |                               |                              |
   |                               |                              |
   +--------------------------------------------------------------+

Three Column layout

Before

+--------------------------------------------------------------+
|       |                             |                        |
|       |                             |                        |
|       |                             |                        |
|-------|                             |                        |
|       |                             |                        |
|       |                             |                        |
|       |                             |                        |
|       |            Main             |                        |
|       |                             |                        |
|       |                             |                        |
|       |                             |                        |
|       |                             +------------------------+
|       |                             |                        |
|       |                             +------------------------+
|       |                             |                        |
+--------------------------------------------------------------+

After

           1                       2                      1
   +--------------------------------------------------------------+
   |               |                              |               |
   |               |                              |               |
   |               |                              |               | 1  
   |               | 1                            |               |
   |               |                              |               |
   |               |                              +---------------|
   |               |                              |               |
   |               |                              |               |
 2 +---------------+             Main           3 |               | 1
   |               |                              |               |
   |               |                              |               |
   |               |                              +---------------|
   |               | 1                            |               |
   |               |                              |               |
   |               |                              |               | 1
   |               |                              |               |
   |               |                              |               |
   +--------------------------------------------------------------+

A clear and concise description of any alternative solutions or features you've considered.

No response

Additional info

I hope the examples are enough explanation. Regards

Mithras commented 1 year ago

I'm also missing this feature. Right now I have to go to settings and check/uncheck some random checkbox to reset window sizes to default. So it's already possible, there is just no shortcut. I'm kinda new to Plasma. Maybe there is a way to reload settings in a script and then just bind it to a shortcut as a temporary workaround?