anodynos / touchegg

Automatically exported from code.google.com/p/touchegg
4 stars 1 forks source link

Better window resize support #121

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The current pinch-based window resize is novel and fun, but doesn't work very 
well in reality.  It's difficult to resize precisely in a given direction.

I'd like to propose resize support for drag gestures that uses quadrant-based 
resizing.  For example, on ubuntu, you can alt+middle click and drag any 
quadrant of a window for a quick and precise resize.  Unfortunately, there's no 
way to do this with a touch pad.  

It would also be nice to be able to define modifier keys with gestures. For 
example, I would like to have alt+3-finger drag to perform a resize.

Original issue reported on code.google.com by bendavi...@gmail.com on 4 Nov 2011 at 5:37

GoogleCodeExporter commented 8 years ago
There's not way to assign a shortcut to this features in the grid plugin??

Original comment by jose.exposito89@gmail.com on 5 Nov 2011 at 2:02

GoogleCodeExporter commented 8 years ago
Are you talking about the compiz plugin?  I'm using gnome-shell. 

Original comment by bendavi...@gmail.com on 5 Nov 2011 at 2:32

GoogleCodeExporter commented 8 years ago
I don't know if this can be usefull:
http://www.multimediaboom.com/gnome-3-keyboard-and-mouse-shortcuts/

Anyway you can try to run this commands:
http://askubuntu.com/questions/41566/how-do-i-get-aero-snap-in-unity-2d

This feature is out of the Touchégg scope, is desktop specified, and Touchégg 
tries to be desktop independent... Try to make this with SEND_KEyS or 
RUN_COMMAND

Greetings!!

Original comment by jose.exposito89@gmail.com on 5 Nov 2011 at 5:00

GoogleCodeExporter commented 8 years ago
Fair enough, that makes sense.  Thanks for the links!

Original comment by bendavi...@gmail.com on 5 Nov 2011 at 5:29

GoogleCodeExporter commented 8 years ago
Hmm, those links didn't really give me much info on ways to configure the 
resize action that I'm wanting (which is normally achieved with 
ALT+middle-btn-drag).  I'd like to configure it so that ALT+3-finger-drag will 
elmulate this, but I don't believe touchegg supports this sort of action yet.  
I see there's a ticket open for adding in support for modifier keys during 
gestures, so I suppose I'll wait for that.

Original comment by bendavi...@gmail.com on 5 Nov 2011 at 5:44

GoogleCodeExporter commented 8 years ago
For my works fine (in KDE) try to run this commands in a terminal:

$ WIDTH=`xdpyinfo | grep 'dimensions:' | cut -f 2 -d ':' | cut -f 1 -d 'x'` && 
HALF=$((($WIDTH/2)-10)) && wmctrl -r :ACTIVE: -b 
remove,maximized_vert,maximized_horz && wmctrl -r :ACTIVE: -b 
add,maximized_vert && wmctrl -r :ACTIVE: -e 0,0,0,$HALF,-1

$ WIDTH=`xdpyinfo | grep 'dimensions:' | cut -f 2 -d ':' | cut -f 1 -d 'x'` && 
HALF=$(($WIDTH/2)) && wmctrl -r :ACTIVE: -b 
remove,maximized_vert,maximized_horz && wmctrl -r :ACTIVE: -b 
add,maximized_vert && wmctrl -r :ACTIVE: -e 0,$HALF,0,$HALF,-1

You only need to install the wmctrl package and add the commands to the 
Touchégg conf ;)

Original comment by jose.exposito89@gmail.com on 5 Nov 2011 at 5:54

GoogleCodeExporter commented 8 years ago
I don't think that's what I'm wanting.  I don't need window snapping, I want 
the ALT+middle-drag window resizing. To clarify, here's a video of me doing 
this with a normal mouse: http://youtu.be/naBIuPdT6mY

I've attempted to make it work with the following:

        <gesture type="TAP_AND_HOLD" fingers="3" direction="ALL">
            <action type="DRAG_AND_DROP">HOLD_DOWN=Alt:BUTTON=2</action>
        </gesture>

But that doesn't seem to work. Does the "HOLD_DOWN" not work with DRAG_AND_DROP?

Original comment by bendavi...@gmail.com on 5 Nov 2011 at 6:36

GoogleCodeExporter commented 8 years ago
Aaaaa ok ok sorry, the only solution is press Alt in the keyboard and then use 
the DRAG_AND_DROP action with BUTTON=2... or search for a command to emulate 
the mouse and the keyboard :S

Original comment by jose.exposito89@gmail.com on 5 Nov 2011 at 7:14

GoogleCodeExporter commented 8 years ago
I currently have DRAG_AND_DROP with 3 fingers mapped to move window, so that 
wouldn't work very well.  Perhaps I'll open up a feature request to allow for 
"hold" keys with mouse actions :-)

If I did find a command that could emulate the mouse, how would it know the x/y 
coordinates of the drag?  Or would that not be possible...

Original comment by bendavi...@gmail.com on 5 Nov 2011 at 7:52