Mouse-settings save


Forum: HD Install
Topic: Mouse-settings save
started by: gerd.schmidt

Posted by gerd.schmidt on Jan. 23 2007,14:14
Hello,

I have installed DSL in MS  VirtualPC 2004. As a left-hander I have customised the mouse settings accordingly. After a restart is away to this setting again. What can I do, so that the setting remains saved?

Gerd

Posted by mikshaw on Jan. 23 2007,17:01
Assuming you use the xset command to adjust your mouse, add that command to /home/dsl/.xinitrc (somewhere above the "case $DESKTOP" part), and make sure this file is being restored.
Posted by gerd.schmidt on Jan. 24 2007,10:56
Thank you for the quick answer. Unfortunately, as Linux- and DSL-newbie I have no notion how I have to do this. I also don't know how this command looks. Can you help me please?

Gerd

Posted by mikshaw on Jan. 24 2007,14:15
You said
Quote
As a left-hander I have customised the mouse settings accordingly.

How exactly did you do this?  I assumed you used the xset command, which can easily be included in a script.

Posted by gerd.schmidt on Jan. 24 2007,14:26
Right-hand-click on the desktop/system/Mouse Config; speed = 4, Left Botton
Posted by mikshaw on Jan. 24 2007,14:40
Ahhhh. I haven't yet seen that tool. That explains a lot =o)
Also I gave you wrong info. It is the xmodmap command that reverses the mouse buttons, and not xset.

The mouse config tool probably uses the xset and xmodmap commands to do (temporary?) changes to the mouse configuration. You can have  these changes applied automatically by adding command(s) to .xinitrc, as I mentioned above. Use whatever text editor you like to do this. Just keep in mind that it is a "hidden" file not displayed by default in the gui file selectors, and that the command must be above the "case $DESKTOP" part of the file or else it will not work.

An example command:
Code Sample
xmodmap -e "pointer = 3 2 1"

The above is for a 3-button mouse with no wheel.  For a wheel, this should work:
Code Sample
xmodmap -e "pointer = 3 2 1 4 5"

Posted by roberts on Jan. 24 2007,14:51
Actually it is both xset and xmodmap, xset for speed and xmodmap for button switch. The suggestion is a good one to improve the Lua/Fltk script I got from a user in Brazil. I will look to make both settings persistent in v3.3
Posted by gerd.schmidt on Jan. 25 2007,11:12
Does this mean that I must enter an farther command with "xset" under the file ".xinitrc", if necessary which and where?

Gerd

Posted by mikshaw on Jan. 25 2007,13:56
That depends on what you want.  If you need to adjust the mouse acceleration, then yes you'll want to add an xset line (right above or below the xmodmap line is a good place).

Check out the "m" section of the xset man page
< http://www.yo-linux.com/cgi-bin/man2html?cgi_command=xset >

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.