stefansundin / altdrag

:file_folder: Easily drag windows when pressing the alt key. (Windows)
https://stefansundin.github.io/altdrag/
GNU General Public License v3.0
1.42k stars 94 forks source link

More complex key configurations #123

Open MarqueIV opened 3 years ago

MarqueIV commented 3 years ago

Hoping to replicate a feature of an app I use called HyperDock on the Mac. One of its features does the same thing as your app, only slightly different. For instance, I have it set to CTRL-ALT-WIN-LEFTDRAG to move a window and CTRL-WIN-LEFTDRAG to resize (from the lower right.) This is regardless of where I click on a window.

I'm so used to that, and because I switch back and forth between Windows and Mac so much I want to replicate that. I actually considered opening up your source and trying to make that change myself (I was the one who asked you how to build in another posting) but when I saw you required Ubuntu to be downloaded and installed, I balked.

So... is there any way the app could be modded to let us specify the behaviors we want? I could actually see you doing something like listing all ten commands... move, and the 9 resize directions as letting us specify which key(s) and mouse button we want to use for a particular feature. Technically you could also do an eleventh which would be 'Auto-resize' that works the way you do now.

Something else... While I love how you have your nine-zone resize, you should also consider making an option to let the middle section behave as a 'move' instead of an 'all-way-resize'. That's regardless of whether you agree to the above ideas about the key mappings.

Anyway, awesome program and happy to throw some cash your way if you're able to find some time for something like this. Sure saves me having to hack something together myself. :)

RamonUnch commented 3 years ago

@MarqueIV Stephan Sundin no longer works on this, I made a fork to keep AltDrag maintained, and I will see if I can implement this feature. For the moment all keys have very special hard-coded behaviors.

Already with current version of AltDrag you can use two copies in separated folders with their own ini files and lunch them at the same time with -multi parameter to partially emulate the behavior you want, however no way to use a combination of keys.

My fork allows you to configure the size of the center zone and if it uses center resizing mode or bottom-right mode, I will be easy to implement the center moving option as you suggest.

RamonUnch commented 3 years ago

@MarqueIV The latest release includes the last feature you asked. https://github.com/RamonUnch/AltDrag/releases/tag/1.31

Play with the CenterFraction option in the AltDrag.ini if you think the central area is too small.

MarqueIV commented 3 years ago

Just saw this. That's awesome! Thanks!!

Any thought to allowing us to specify the key/mouse combos in there as well? That would make it perfect! (Pretty damn close now. Not complaining. Just hoping. 🙂)

RamonUnch commented 3 years ago

key combo added in version 1.38