Jazqa / kwin-quarter-tiling

An easy tiling script for KWin
GNU General Public License v2.0
366 stars 20 forks source link

Add floating windows preset sizes #53

Closed 3ximus closed 6 years ago

3ximus commented 6 years ago

Hey man! I wanted this feature so I decided to add it. It allows me to set a fixed size when making windows float based on a percentage of the screen size, and automaticly put them in the center. It should not interfere with anything but if you dont want to add it to your project feel free to decline the pull request. Also, a lot of lines seem afected because I remove trailing white spaces automaticly. Cheers

Jazqa commented 6 years ago

I really appreciate the pull-requests as I have not been able to pay enough attention to the script lately. Definitely testing and merging this as soon as I can. Thanks a ton for contributing!

3ximus commented 6 years ago

I'm also simplifying moving windows between screens because this seems kind of a mess and there is a simple way to do this, I'm just having problems with javascript modular arithmetic

Jazqa commented 6 years ago

This is quite brilliant. I'm going to change the feature a bit in near future, but I'm still going to keep this version available through the configuration interface. I've been thinking of restoring the original size and position whenever a window is removed from tiling.

Probably going to have float-behavior options along the lines:

Placement:                                   Size:
Center                                       Custom (Width, Height)
Original                                     Original
3ximus commented 6 years ago

yeah that sounds cool! 👍