pkkid / x11pygrid

Quickly move windows around the an X11 desktop
GNU General Public License v2.0
323 stars 41 forks source link

Change middle dimensions #14

Open VariabileAleatoria opened 5 years ago

VariabileAleatoria commented 5 years ago

Hi, first of all thank you because this is the only script/extension that works correctly and does exactly what expected with no bugs or weird mechanics. I'd like to know if it's possible to easily modify the script in order to change the behaviour on the 'middle' input. I really don't need the centered window to be full-width, because I can use maximize for that, so I'd prefer to have it centered but with reduced width and height. Is it possible?

pkkid commented 5 years ago

Unfortunately this isn't possible with only config changes today. We would probably want to add a new configuration option along the lines of middlepadding that would be a special case for a centered window, then implement the usage of that value in the _generate_sequence_percents() function.

Mr-Ruben commented 3 years ago

I would suggest you try this in the configuration

"xdivs": 6

It allows to use 2/6, 3/6 and 4/6 of screen (just keep pressing the key combination until what you want appears), regardless of the position.