Mouse Gestures

When and for which function do you use mouse gestures?

I use it to change desktops and start some programs like gftp and firefox. I once had a mouse gesture to take screenshots but I ended with 50 or more screenshots in my home dir so I changed that.

HINT: In gentoo, when emerging fvwm, try: USE=“stroke” emerge fvwm; to enable mouse gestures!

I have one for actualising Desktop (xosview doesn’t get a wallpaper change, wrote a small script to change wallpaper every 30 min) and some for controlling my xmms/rhythmbox

I am a mouse gesture whore. I have about 28 unique mouse gestures defined (this is not counting duplicate definitions of the same gesture… for example, I have N951 and N9651 so fvwm will catch it if I screw up the gesture slightly). Here they are:

-------------------------------

UP: Web Brovsers

firefox, mozilla, konqueror, galeon

-------------------------------

Stroke N258 0 A N Exec exec firefox
Stroke N25852 0 A N Exec exec mozilla
Stroke N36987 0 A N Exec exec konqueror
Stroke N14789 0 A N Exec exec galeon

-------------------------------

DOWN: misc. apps

thunderbird, gftp, ,

-------------------------------

Stroke N852 0 A N Exec exec thunderbird
Stroke N85258 0 A N Exec exec gftp
Stroke N96321 0 A N Exec exec sudo ifp_gui
Stroke N74123 0 A N Exec exec sudo ifp_gui

-------------------------------

RIGHT: file management

rox

-------------------------------

default: rox

Stroke N456 0 A N Exec exec rox
Stroke N45654 0 A N Exec exec rox $[DOCUMENTS]
Stroke N12369 0 A N Exec exec rox /mnt
Stroke N78963 0 A N Exec exec rox $[DOWNLOADS]

-------------------------------

LEFT: terminals

aterm, xterm, konsole, gnome terminal

-------------------------------

Stroke N654 0 A N Exec exec aterm
Stroke N65456 0 A N Module FvwmConsole
Stroke N32147 0 A N Exec exec konsole
Stroke N98741 0 A N Exec exec gnome-terminal

corners

SetEnv N1.1 ‘And2 “Any (gaim) show_gaim” “None (gaim) Exec exec gaim”’
SetEnv N1.2 ‘Exec exec gimp’
SetEnv N1.3 ‘Exec exec kcontrol’
SetEnv N1.4 ‘Exec exec kcontrol’

SetEnv N3.1 ‘Exec exec emacs’
SetEnv N3.2 ‘Exec exec xemacs’
SetEnv N3.3 ‘Exec exec kwrite’
SetEnv N3.4 ‘Exec exec gedit’

SetEnv N7.1 ‘Exec exec xine’
SetEnv N7.2 ‘Exec exec gmplayer’
SetEnv N7.3 Nop
SetEnv N7.4 Nop

SetEnv N9.1 xalbumlist
SetEnv N9.2 music_player
SetEnv N9.3 Nop
SetEnv N9.4 Nop

-------------------------------

BOTTOM LEFT:

-------------------------------

Stroke N951 0 A N $[N1.1]
Stroke N9651 0 A N $[N1.1]
Stroke N96521 0 A N $[N1.1]

Stroke N95159 0 A N $[N1.2]
Stroke N965159 0 A N $[N1.2]
Stroke N9652159 0 A N $[N1.2]

Stroke N95147 0 A N $[N1.3]
Stroke N965147 0 A N $[N1.3]
Stroke N62147 0 A N $[N1.3]
Stroke N962147 0 A N $[N1.3]
Stroke N9652147 0 A N $[N1.3]

Stroke N95123 0 A N $[N1.4]
Stroke N965123 0 A N $[N1.4]
Stroke N9652112 0 A N $[N1.4]

-------------------------------

BOTTOM RIGHT:

-------------------------------

Stroke N753 0 A N $[N3.1]
Stroke N7453 0 A N $[N3.1]
Stroke N7523 0 A N $[N3.1]
Stroke N74523 0 A N $[N3.1]

Stroke N75357 0 A N $[N3.2]
Stroke N5357 0 A N $[N3.2]
Stroke N45357 0 A N $[N3.2]
Stroke N753587 0 A N $[N3.2]
Stroke N75357 0 A N $[N3.2]
Stroke N7452357 0 A N $[N3.2]

Stroke N75369 0 A N $[N3.3]
Stroke N745369 0 A N $[N3.3]
Stroke N752369 0 A N $[N3.3]
Stroke N7452369 0 A N $[N3.3]

Stroke N75321 0 A N $[N3.4]
Stroke N745321 0 A N $[N3.4]
Stroke N752321 0 A N $[N3.4]
Stroke N7452321 0 A N $[N3.4]

----------------------------------

TOP RIGHT: MEDIA PLAYERS

----------------------------------

Stroke N159 0 A N $[N9.1]
Stroke N1589 0 A N $[N9.1]
Stroke N1569 0 A N $[N9.1]
Stroke N12569 0 A N $[N9.1]

Stroke N15951 0 A N $[N9.2]
Stroke N158951 0 A N $[N9.2]
Stroke N156951 0 A N $[N9.2]
Stroke N1256951 0 A N $[N9.2]

Stroke N15987 0 A N $[N9.3]
Stroke N158987 0 A N $[N9.3]
Stroke N156987 0 A N $[N9.3]
Stroke N1256987 0 A N $[N9.3]

Stroke N15963 0 A N $[N9.4]
Stroke N158963 0 A N $[N9.4]
Stroke N156963 0 A N $[N9.4]
Stroke N1256963 0 A N $[N9.4]

----------------------------------

TOP LEFT:

----------------------------------

Stroke N3257 0 A N $[N7.1]
Stroke N3547 0 A N $[N7.1]
Stroke N32547 0 A N $[N7.1]
Stroke N357 0 A N $[N7.1]
Stroke N36587 0 A N $[N7.1]

Stroke N35742 0 A N $[N7.2]
Stroke N35752 0 A N $[N7.2]
Stroke N35753 0 A N $[N7.2]
Stroke N35756 0 A N $[N7.2]
Stroke N25753 0 A N $[N7.2]
Stroke N357856 0 A N $[N7.2]
Stroke N357563 0 A N $[N7.2]
Stroke N357523 0 A N $[N7.2]
Stroke N365753 0 A N $[N7.2]
Stroke N325753 0 A N $[N7.2]
Stroke N3658753 0 A N $[N7.2]

Stroke N325741 0 A N $[N7.3]
Stroke N354741 0 A N $[N7.3]
Stroke N3254741 0 A N $[N7.3]
Stroke N35741 0 A N $[N7.3]
Stroke N3658741 0 A N $[N7.3]

Stroke N325789 0 A N $[N7.4]
Stroke N354789 0 A N $[N7.4]
Stroke N3254789 0 A N $[N7.4]
Stroke N35789 0 A N $[N7.4]
Stroke N3658789 0 A N $[N7.4]

Can anyone provide an explanation for what that strokes script actually means? It’s pretty confusing, and I’ve never used mouse gestures before except in GAIM, but they crashed GAIM pretty often so I turned them off :frowning:

p.s. sorry for the bump, I figured it was in the topic-listing page, so it’d be okay

To be absolutely honest, the explanation in “man fvwm” is probably the best I’ve seen – and indeed, these stroke support features are an application of what fvwm has built upon.

As an example:

Stroke N78963214   3  R  N  FvwmForm FvwmForm-QuitVerify

The “N” in front of the numbers, means the layout and direction of movement is dictated by the layout of the keys on a numeric keypad. So the above would mean that if you were to draw a square on the root window, moving clockwise, the FvwmForm would run – and the good thing with stroke support is that it doesn’t have to be exact. :slight_smile:

If you leave the “N” out, then the number sequence defaults to that found on some telephone systems.

Does that help?

– Thomas Adam

Another resource i found immensely helpful was the explanation in taviso’s configuration file, just search for “mouse gesture” and you’ll find it for sure :slight_smile: