rustysec / tidalwm

Simple and sane tiling window manager for Gnome Shell
GNU General Public License v3.0
194 stars 5 forks source link

Configurable first window width percentage #51

Closed laurentlbm closed 3 years ago

laurentlbm commented 3 years ago

I have an ultrawide display and in most cases, I want the tiling to make the first window wider than half the screen. Therefore, I added a setting to configure the width of the first window (as a percentage of the screen).

For example, with the value 70, the windows are split like this: image

Let me know if this change makes sense and if you want any changes made to the code.

laurentlbm commented 3 years ago

Just a few notes:

  1. I've put arbitrary boundaries to the percentage so that it can't be too small or too big.
  2. I would like to improve it to have the tiling adjusted live so that you can see the change as you are setting the percentage. I haven't had time to go back to the code yet.
  3. I can also rewrite it for your next branch in TypeScript if you want.
filirnd commented 3 years ago

Yes is intresting feature for widescreen.

rustysec commented 3 years ago

Looks good to me! Thanks for the contribution. Do not worry about the next branch... it is very much still a work in progress where I am trying to make some decisions.