bismuth icon indicating copy to clipboard operation
bismuth copied to clipboard

[FEATURE]: Resize to symetric sizes shortcut

Open polirritmico opened this issue 3 years ago • 1 comments

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

polirritmico avatar Aug 18 '22 18:08 polirritmico

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?

Mithras avatar Feb 02 '23 08:02 Mithras