LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-23-2005, 07:48 AM   #1
Potatopopper
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware 13.37
Posts: 29

Rep: Reputation: Disabled
/etc/X11/xinit/.Xmodmap; run level 4 won't init script


I have a Logitech 510mx mouse and I needed to remap some of the keys by adding this line to
"/etc/X11/xinit/.Xmodmap"

pointer = 1 2 3 6 7 4 5

But if I set /etc/inittab to run level 4, when I log into kde the keys are not remaped; so I guess the script doesn't get run, but I'm not sure though. Just wondering why this is. Thanks for any help.
 
Old 11-23-2005, 08:11 AM   #2
malo_umoran
Member
 
Registered: Dec 2003
Distribution: Desktop: Slackware 13.1 &13.37 | Server: Debian 6.0
Posts: 270

Rep: Reputation: 32
you can remap the buttons in /etc/X11/xorg.conf:

Option "ZAxisMapping" "1 2 3 6 7 4 5"


maybe, KDM is ignoring Xmodmap. you could make a autostart script which runs this:
$ xmodmap -e "pointer = 1 2 3 6 7 4 5"

M.
 
Old 11-23-2005, 08:58 AM   #3
Potatopopper
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware 13.37
Posts: 29

Original Poster
Rep: Reputation: Disabled
oh cool, thanks. I'll do the first option you said since it is quicker. I was under the impression that the ZAxisMapping was just for mapping the mouse wheel, so that never even occured to me. Thanks again.
 
Old 11-23-2005, 09:03 AM   #4
malo_umoran
Member
 
Registered: Dec 2003
Distribution: Desktop: Slackware 13.1 &13.37 | Server: Debian 6.0
Posts: 270

Rep: Reputation: 32
mouse wheel is just a button ... np.

M.
 
Old 11-26-2005, 01:23 PM   #5
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 793

Rep: Reputation: 245Reputation: 245Reputation: 245
I had similar problems with that.

The only file that reliably executes with a graphical login is "~/.xprofile" or "/etc/xprofile".

This link may be helpful.
http://www.linuxquestions.org/questi...89#post1885989
 
Old 11-27-2005, 07:37 PM   #6
Potatopopper
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware 13.37
Posts: 29

Original Poster
Rep: Reputation: Disabled
Thanks Erik, that did the trick...now it works!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Init-level 5 but X11 don't start sjoe Linux - Newbie 9 09-20-2004 08:05 AM
xmodmap won't run automatically txmjafg Linux - General 3 12-14-2003 09:44 PM
init script won't run at log-off dimangi Linux - Newbie 1 10-29-2003 02:19 AM
What the /etc/X11/xinit/xinitrc file should look like? Duukkis Linux - Software 6 05-29-2003 08:56 AM
setting script to run when system enter init 3 fowlerlfc Linux - Newbie 2 10-29-2002 03:02 PM


All times are GMT -5. The time now is 08:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration