Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
which init-script to use for commands?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
bur
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 229

PostPosted: Sat Apr 30, 2005 11:54 am    Post subject: which init-script to use for commands? Reply with quote

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 :roll: 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
View user's profile Send private message
Crenshaw
Guru
Guru


Joined: 23 Jun 2004
Posts: 474
Location: Poland

PostPosted: Sat Apr 30, 2005 11:58 am    Post subject: Reply with quote

~./.xinitrc?
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sat Apr 30, 2005 12:15 pm    Post subject: Reply with quote

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
Code:
xmodmap ~/.Xmodmap
to ~/.kde/Autostart/[/code]
_________________
KDE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum