LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   xmodmap not working in .xinitrc (https://www.linuxquestions.org/questions/slackware-14/xmodmap-not-working-in-xinitrc-262261/)

kmeehl 12-03-2004 04:09 PM

xmodmap not working in .xinitrc
 
I am using xmodmap to remap my mouse buttons. The command works fine if i issue it manually, but I am unable to get X to issue it upon startup. Here is my .xinitrc file:

Code:

#!/bin/sh

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

And yes, its executable...

Thanks for any help.

-kM

Slovak 12-03-2004 05:14 PM

Looks to me as if it is a script within xinitrc, remove the "#!/bin/sh". Open xinitrc as root in an editor of your choice, and put this in there BEFORE the startkde line.

# xmouse config
xmodmap -e "pointer = 1 2 3 6 7 4 5 8"

Save the file, and restart "x"


All times are GMT -5. The time now is 07:52 AM.