1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "../docbook-xml/docbookx.dtd"
5 <!ENTITY % myents SYSTEM "../fvwm.ent" >
9 <!-- $Id: Stroke.xml,v 1.3 2007/06/16 12:38:46 griph Exp $ -->
15 <command>Stroke</command
17 >(<replaceable>window</replaceable
20 ><replaceable>Sequence</replaceable
23 ><replaceable>Button</replaceable
26 ><replaceable>Context</replaceable
29 ><replaceable>Modifiers</replaceable
32 ><replaceable>Function</replaceable
36 <para>Binds a mouse stroke sequence to a specified fvwm command,
37 or removes the binding if
38 <replaceable>Function</replaceable>
39 is '-'. The syntax is the same as for a
40 <fvwmref cmd="Mouse"/>
42 <replaceable>Sequence</replaceable>
43 is inserted in front of the button number and a value of 0 for
44 <replaceable>Button</replaceable>
46 <fvwmref cmd="StrokeFunc"/>
48 <replaceable>Context</replaceable> and <replaceable>Modifiers</replaceable>
49 fields are defined as in the
50 <fvwmref cmd="Mouse"/>
51 binding. However, only the '<fvwmref cmd="Mouse" opt="R"/>' Context really works (if you want
52 to use other contexts you need to use the
53 <fvwmref cmd="StrokeFunc"/>
56 <para>Strokes sequences are defined in a telephone grid like this:</para>
66 <para>or in a numeric pad grid like this:</para>
76 <para>The telephone grid is used by default, to use the numeric pad grid
77 you should begin the sequence with a '<fvwmopt cmd="Stroke" opt="N"/>'.
78 Note that a complex motion may produce several different sequences
80 example below to handle such motion). Moreover, sequences are
81 limited to 20 elements (with the present version of
82 <emphasis remap='B'>libstroke</emphasis>),
83 however, in practice it is preferable to use sequence with less
84 than 12 elements.</para>
86 <para>Because of the default button menu in fvwm, you may need to remove
87 a mouse button binding (using an empty action) before using the
91 <fvwmref cmd="Mouse"/> 3 R N
94 <para>Also, you can still use the stroke "sequence 0" to simulate a
98 Stroke 0 3 R N <fvwmref cmd="Menu"/> <fvwmref cmd="WindowList"/> <fvwmref cmd="Nop"/>
101 <para>The following example starts xterm when the mouse drags an 'I' on
102 the root window with button 3 pressed down:</para>
105 Stroke 258 3 R N <fvwmref cmd="Exec"/> exec xterm
108 <para>An example for Netscape:</para>
111 Stroke 7415963 3 R N <fvwmref cmd="Exec"/> exec netscape
112 Stroke 74148963 3 R N <fvwmref cmd="Exec"/> exec netscape
113 Stroke 74158963 3 R N <fvwmref cmd="Exec"/> exec netscape
114 Stroke 7418963 3 R N <fvwmref cmd="Exec"/> exec netscape
115 Stroke 415963 3 R N <fvwmref cmd="Exec"/> exec netscape
118 <para>You may prefer to use the numeric pad grid since you have such a
119 grid on your machine. Here an example:</para>
122 Stroke N78963214 3 R N <fvwmref mod="FvwmForm"/> FvwmForm-QuitVerify
123 Stroke N789632147 3 R N <fvwmref mod="FvwmForm"/> FvwmForm-QuitVerify
126 <para>This example starts the "QuitVerify" form if you draw a box that
127 begins in the top left corner.</para>
130 <emphasis remap='B'>libstroke</emphasis>
131 installed and fvwm compiled with stroke support.
132 <!-- This should really be in INSTALL.fvwm -->
133 <emphasis remap='B'>libstroke</emphasis>
135 <ulink url='http://www.etla.net/~willey/projects/libstroke/'>http://www.etla.net/~willey/projects/libstroke/</ulink>