2 WindowLocaleTitle {Pointer Setup}
3 WindowSize 365 265 # Taille
4 Font "xft:monospace:pixelsize=11;"
10 Set $FILE=(GetScriptArgument 1)
12 Set $FILE={.xinitrc-fvwm}
19 Set $tmp=(GetOutput {xset -q} $pos 1)
20 If $tmp=={Pointer} Then
27 Do {Exec sh -c "echo 'PointerSetup: uncompatible xset'"}
31 Set $tmp=(GetOutput {xset -q} $pos 2)
33 While (StrCopy $tmp $pos2 $pos2)<>{/} Do
34 Set $pos2=(Add $pos2 1)
35 Set $pos2=(Add $pos2 -1)
37 ChangeValue 6 (Div (Mult (StrCopy $tmp 1 $pos2) 20) (StrCopy $tmp (Add $pos2 2) 256))
38 ChangeTitle 8 (GetOutput {xset -q} $pos 4)
52 Do {Exec xset m } (GetValue 6) {/20 } (GetTitle 8)
53 If (GetValue 4) == 1 Then
54 Do {Exec xmodmap -e "pointer = 1 2 3"}
56 Do {Exec xmodmap -e "pointer = 3 2 1"}
71 Do {Exec xset m } (GetValue 6) {/20 } (GetTitle 8)
72 WriteToFile $FILE {xset m } (GetValue 6) {/20 } (GetTitle 8)
73 If (GetValue 4) == 1 Then
75 Do {Exec xmodmap -e "pointer = 1 2 3"}
76 WriteToFile $FILE {xmodmap -e "pointer = 1 2 3"}
80 Do {Exec xmodmap -e "pointer = 3 2 1"}
81 WriteToFile $FILE {xmodmap -e "pointer = 3 2 1"}
83 Do {Exec chmod +x ~/} $FILE
108 LocaleTitle {Right-handed user|Left-handed user}
120 Flags NoReliefString NoFocus
122 LocaleTitle {Mouse configuration:}
148 Flags NoReliefString NoFocus
150 LocaleTitle {Acceleration:}
175 Flags NoReliefString NoFocus
177 LocaleTitle {Threshold (pixels):}
200 Flags NoReliefString NoFocus
202 LocaleTitle {Pointer}