Closed takagiy closed 4 years ago
Thank you so much for this amazing patch... Everything is implemented so perfectly :smile_cat: :smile_cat: :smile_cat:
I only spotted one (possible) glitch. Here's the steps to reproduce:
I think perhaps we can remove bindsym $Mod+$Alt+0 resize_set_ratio 100
if it doesn't have special purposes?
Thank you again for your hard work! Love this so much...
This request is going to add some interfaces to make it possible to resize tiled windows with keys. By this, the class
Tree::Node
will have new member variableratio_
which represents how long the window is to its parent node and we will be able to resize the windows by modifying itsratio_
. Concretely, this request adds following four new actions.resize_width <int>
/resize_height <int>
Resize the focused window by adding a given integer argument (percentage) to its ratio. To shrink windows, use negative values for the argument. These two actions can resize floating windows too, as thefloat_resize_*
action does (so they could be replacements of them). In that case, it regards thefloat_resize_step
value in config but not the absolute value of the given argument.resize_set_ratio <int>
Resize the focused window to the ratio specified by a given integer argument (%) and distribute the remaining space to its sibling windows evenly. This action is intended to be used to apply preferred layouts quickly.resize_reset_ratios
Resize the focused window and its sibling windows so that they will share their parent's space evenly.This request also adds some example configurations using these new actions. Please feel free to let me know if you have any questions.
Thank you!