LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ~/.xinitrc not called (https://www.linuxquestions.org/questions/slackware-14/%7E-xinitrc-not-called-319763/)

dvm 05-03-2005 01:19 PM

~/.xinitrc not called
 
Ok, I'm flooding this forum with questions but please bear with me. I'm trying to add the xmodmap command so I can use the mouse wheel. I've created a ~/.xinitrc file where I've added the command. But it doesn't seem to get called (by the way, I go straight to runlevel 4, does this bypass the aforementioned file?) In which file should I add the xmodmap command (for a user only)?

kimx 05-03-2005 01:22 PM

What I do is that I add the a file called Xmodmap to the folder /etc/X11/xinit/

Then you don't have to do it for all the different users.

dvm 05-03-2005 02:11 PM

Yeeah baby. Finally, greek fonts and the mouse work perfectly. I even get back-forward navigation with the side mouse buttons.
In the end I added a ~/.Xmodmap. The key was to find out from where this is called, which was /etc/X11/xinit/xinitrc
In there the command was already called so my ~/.Xmodmap contents are:
pointer = 3 2 1.... you get the picture. Anyway, thanks for the help guys. All of you. Now I'll take a big brake, watch liverpool-chelsea and then try to take on dvd playback. A great big thanks once again ;)

LiNuCe 05-04-2005 02:49 AM

Re: ~/.xinitrc not called
 
To configure your wheel, you need to add a ZAxisMapping option in the InputDevice section for your mouse in the /etc/X11/xorg.conf file. Your InputDevice section should look like this (/dev/mouse is a symlink which points to the proper mouse device ; it points to /dev/input/mice for my USB mouse) :

Code:

Section "InputDevice"
  Identifier "Mouse1"
  Driver  "mouse"
  Option  "Protocol"    "IMPS/2"
  Option  "Device"      "/dev/mouse"
  Option  "ZAxisMapping" "4 5"
EndSection

--
LiNuCe


All times are GMT -5. The time now is 06:12 PM.