ssokolow / quicktile

Adds window-tiling hotkeys to any X11 desktop. (An analogue to WinSplit Revolution for people who don't want to use Compiz Grid)
https://ssokolow.com/quicktile/
GNU General Public License v2.0
861 stars 78 forks source link

MS Windows-like behavior when calling quicktile.py right/left multiple times #69

Open aplocher opened 7 years ago

aplocher commented 7 years ago

Hello, I wanted to request a feature/enhancement for this great tool.

It would be awesome if the behavior was a little more Windows-like in terms of how it handles "RIGHT" or "LEFT" multiple times (when the user has multiple monitors).

For example. If you have a floating window on your left monitor and do the "RIGHT" command multiple times, in Windows, this is what will happen (with WINKEY+RIGHT):

1st time - tile to RIGHT of the current (LEFT) monitor 2nd time - tile to the position right of that (so the LEFT half of the RIGHT monitor) 3rd time - tile to the position right of that (so the RIGHT half of the RIGHT monitor) ... and I believe it'll cycle around continuously (LEFT half of the LEFT monitor)

I think operating in a mode like that would be very helpful and it has a very intuitive feeling to it. Currently I'm finding that I want to position my windows in certain places, but it becomes frustrating when I'm constantly having to take my hands of the keyboard to move a window to another monitor.

Thanks

ssokolow commented 7 years ago

While I don't currently have time to work on QuickTile, there is already a way to do what you want. (I have three monitors, so I did already have a need for something like that)

My windows tend to appear on my rightmost monitor, so I use this often:

  1. Hold down Ctrl+Alt
  2. Press Enter on the numeric keypad to cycle monitors
  3. Press 4 on the numeric keypad to position within the monitor
  4. Release Ctrl+Alt

The main reason I did it that way is that I didn't have time to implement generic support for complex cycling rules beyond the simple hard-coded (and already buggy) behaviour for multiple widths from the same key.

aplocher commented 7 years ago

Thank you, that's a good start and very helpful (at least it will keep me from having to switch my mind and body into "mouse mode" to change monitors). Unfortunately I don't have a numpad on my keyboard, but I will be sure to remap that. Thanks again!