PDA

View Full Version : HOWTO : KDE Mouse Gestures



Rog131
Sep 22nd 2007, 09:24 AM
KDE has built in mouse gesture system.


Path K > System Settings > Accessibility --> Input Actions


Enabling mouse gestures:

Press Global Settings button
Goto Gesture Settings tab. Enable mouse gestures globally.
Choose which mouse button do you want to use with gestures.


Two exaples how to add mouse gestures

Example #1 Start programs with mouse gestures

Click New Group

In General tab.
Give Action Group name: My KDE Gestures

Click My KDE Gestures in Actions screen then click New Action button.


In General tab
Action name: Start Konqueror


In Triggers tab
New > Gesture trigger -> (window pops up)

Draw the gesture you would like to record below. Press and hol the left mouse button while drawing, and release when you have finished.

You will be required to draw the gesture 3 times. After each drawing, if they match, the indicator below will change to represent which step you are on.

If at any point they do not match, you will be required to restart. If you want to force a restart, use the reset button below.
Click OK


In Actions tab
New > Command/URL to execute (window pops up) Put there:
kfmclient openProfile filemanagement
Click OK

Note
That will open konqueror in home folder with file management profile.

Press Apply



Example #2 Use KDE mouse gestures in Firefox

Click New Group

In General tab.
Give Action Group name: My Firefox Gestures

In Conditions tab
New > Active window > (window pops up) New > (window pops up) Window class :
Matches Regular Expression

Click Autodetect ---> Click open Firefox window. Here it adds text Gecko Firefox-bin in the empty line (Note that my Firefox isn't from repos - so your text can be different)

Window Types: Normal

Click OK
Click OK
Click Apply

Click My Firefox Gestures in Actions screen then click New Action button

In General tab
Action name: Open New Tab
In Triggers tab
New > Gesture trigger > (window pops up)

Draw the gesture you would like to record below. Press and hol the left mouse button while drawing, ...

Click OK


In Actions tab
New > Keyboard input > (window pops up)
Keyboard input: Ctrl+T
Send Input To: Action window
Click OK

Click Apply



Links:
KDE News/mouse gestures
http://dot.kde.org/1041971213/1041983589/

Actions for KHotKeys (KDE 3.2)
http://ktown.kde.org/~seli/khotkeys/

Fintan
Sep 22nd 2007, 10:01 AM
Thank you Rog nice How-To :)

I was wondering in very early versions of kde you could set the screen and the mouse so one could change to another desktop by going to the appropriate edge of the screen. For example it I have vmplayer running on desktop two and kubuntu on one I can change back and forth by moving my mouse left / resp. right. I admit this goes back some 6-7 years (suse 5.something) but I was looking for that lately and can't find it anymore.

Does it still exist?

Cheers
Fintan

kubicle
Sep 22nd 2007, 10:07 AM
Does it still exist?

kcontrol > Desktop > Window Behavior > Advanced-tab > Active Desktop Borders

Fintan
Sep 22nd 2007, 10:15 AM
Okay, I stand as a dunce. I should just go hide under a rock ;) Or grab a double vodka, but it's too early for that. :)

Fenyx
Sep 22nd 2007, 10:57 AM
Thanks for this! I've always been wanting to try out mouse gestures in KDE but always put it off. Seeing this made me want to really give it a test run.

Result: I might have found my next KDE killer feature :)

dibl
Sep 22nd 2007, 12:32 PM
grab a double vodka, but it's too early for that. :)



Somewhere on earth, it's the perfect moment -- just imagine you are there, and proceed accordingly! ;D


@Rog -- Very Nice Instruction -- thanks! :)

Fintan
Sep 22nd 2007, 02:55 PM
Somewhere on earth, it's the perfect moment -- just imagine you are there, and proceed accordingly! ;D

So much for anti globalisation ;D Well it is a lot later now and about time to crawl from under my rock and into a bar :D