Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 04-24-2006, 01:34 AM   #1 (permalink)
 
Banned

Join Date: Sep 2005

Posts: 5,191

The General

Default quick question

debian etch / 2.6.15-1-k7-smp

i have to run this every time i login in order for my mouse to work right:

xmodmap -e "pointer = 1 2 3 4 5 8 9 6 7"

how can i make it to that automatically every time i login? i added that line in a text file called /home/ted/.Xmodmap and it askes me if i want to use it the next time i restart but it doesnt take effect... it only works if i do it manually.

what am i doing wrong?
The General is offline  
Old 04-24-2006, 06:12 AM   #2 (permalink)
 
Ultra Techie

Join Date: May 2005

Location: Townsville, QLD

Posts: 641

jakec is on a distinguished road

Default

General,

You are restarting X every time?

Activating the .Xmodmap at startup
Some distributions automatically load the ~/.Xmodmap when a user logs on in X - if yours does, consider yourself happy. One of the distris which doesn't do it is Gentoo, while SuSE does.

Here is how you get it loaded automatically: You've got to open

$KDEDIR/share/config/kdm/Xsession

and insert the following code at the beginning of the file (but after the shebang #!/bin/sh):

if [ -f $HOME/.Xmodmap ]; then
/usr/X11R6/bin/xmodmap $HOME/.Xmodmap
fi

Now save, logout and log in again. Your modmap should have been loaded now.

Source: http://cweiske.de/howto/xmodmap/alli...tml#ownxmodmap

hope this Helps,

Jake
jakec is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On