dsvilko
September 17th, 2007, 04:07 PM
By combining an excellent KDE 'Input Action' system (System Settings -> Accessibility -> Input Actions) and xte (xautomation package in Ubuntu) I've been able to construct a few convenient mouse gestures.
For example, I have mapped 'down-stroke' mouse gesture to the command:
xte 'keydown Super_L'; sleep 3; xte 'keyup Super_L'
Now, by doing a down-stroke mouse gesture, in the next 3 seconds I have the 'Windows' key pressed and I can easily adjust the 'Enhanced Zoom Desktop' zoom level (mouse wheel) or select the windows for grouping (left mouse button).
In the same way, I have mapped a 'upward-stroke' to:
xte 'keydown Alt_L' 'keydown Control_L'; sleep 2; xte 'keyup Alt_L' 'keyup Control_L'
That gives me 2 seconds to initiate the cube rotation on any place in the screen using the left mouse button. You can also use it to change to text size in the Firefox, using the mouse wheel :)
I also made a mouse gesture shortcut for negate window but the possibilities are more or less endless :)
I would gladly hear about your mouse gesture bindings!
A QUICK HOWTO:
1) Open System Settings -> Accessibility -> Input Actions
2) New Action
3) Pick a descriptive Action Name under General
4) Triggers -> New -> Gesture trigger
5) Actions -> New -> Command/URL (enter your xte command)
6) Apply
For example, I have mapped 'down-stroke' mouse gesture to the command:
xte 'keydown Super_L'; sleep 3; xte 'keyup Super_L'
Now, by doing a down-stroke mouse gesture, in the next 3 seconds I have the 'Windows' key pressed and I can easily adjust the 'Enhanced Zoom Desktop' zoom level (mouse wheel) or select the windows for grouping (left mouse button).
In the same way, I have mapped a 'upward-stroke' to:
xte 'keydown Alt_L' 'keydown Control_L'; sleep 2; xte 'keyup Alt_L' 'keyup Control_L'
That gives me 2 seconds to initiate the cube rotation on any place in the screen using the left mouse button. You can also use it to change to text size in the Firefox, using the mouse wheel :)
I also made a mouse gesture shortcut for negate window but the possibilities are more or less endless :)
I would gladly hear about your mouse gesture bindings!
A QUICK HOWTO:
1) Open System Settings -> Accessibility -> Input Actions
2) New Action
3) Pick a descriptive Action Name under General
4) Triggers -> New -> Gesture trigger
5) Actions -> New -> Command/URL (enter your xte command)
6) Apply