View previous topic :: View next topic |
Author |
Message |
bur Apprentice
Joined: 20 Feb 2004 Posts: 229
|
Posted: Sat Apr 30, 2005 11:54 am Post subject: which init-script to use for commands? |
|
|
I want to run the command 'xmodmap -e "pointer = 1 6 3 4 5"' each time X/KDE is loaded. Because I couldn't find a proper init script (xorg.conf won't execute the command) I placed it in a script which name I forgot it was a very basic script, something that gets executed on every linux but it didn't exist on my Gentoo system, so I created it. But even though the command gets executed now, it doesn't work because the X-server isn't started yet. If someone knows what init-script this could be, please tell as I'd like to remove the comand from it.
What I'm looking for now is the place where I should add the xmodmap command, I searched for init, KDE, X and so on but with no useful results... |
|
Back to top |
|
|
Crenshaw Guru
Joined: 23 Jun 2004 Posts: 474 Location: Poland
|
Posted: Sat Apr 30, 2005 11:58 am Post subject: |
|
|
~./.xinitrc? |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Sat Apr 30, 2005 12:15 pm Post subject: |
|
|
For the current user only:
Code: | echo "pointer = 1 6 3 4 5" >> ~/.Xmodmap |
System wide:
Code: | echo "pointer = 1 6 3 4 5" >> /usr/X11R6/lib/X11/xinit/.Xmodmap |
If you're using kdm, additionally add a call to ~/.kde/Autostart/[/code] _________________ KDE |
|
Back to top |
|
|
|