Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
.xmodmap doesnt load at startx [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Efo
Guru
Guru


Joined: 23 Jun 2005
Posts: 498

PostPosted: Tue Jun 28, 2005 10:58 pm    Post subject: .xmodmap doesnt load at startx [SOLVED] Reply with quote

Hi guys,

I have a couple of extra button on my keyboard and I assigned them a keycode.
If I run the command "xmodmap .xmodmap" everything works fine, but I have to run it everytime I startxr. Shouldnt the file .xmodmap be read automatically when I startx ? (I also tried putting the new keys in .Xmodmap).

Thanx

Efo :(


Last edited by Efo on Wed Jun 29, 2005 1:35 am; edited 1 time in total
Back to top
View user's profile Send private message
karnesky
Apprentice
Apprentice


Joined: 18 Mar 2004
Posts: 218

PostPosted: Tue Jun 28, 2005 11:57 pm    Post subject: Reply with quote

put
Code:
xmodmap ~/.xmodmap
into ~/.xinitrc
_________________
Donate to F/OSS
Back to top
View user's profile Send private message
Efo
Guru
Guru


Joined: 23 Jun 2005
Posts: 498

PostPosted: Wed Jun 29, 2005 1:34 am    Post subject: Reply with quote

kamesky,

Thank you for your help.
I wanted to avoid doing that , and fortunately I found the problem.
The file startx wasnt loading /etc/X11/xinit/xinitrc and it was loading /home/user/.xinitrc instead. Now I have the startx file loading /etc/X11/xinit/xinitrc in which it was already specified to load /home/user/.xinitrc.
In /etc/X11/xinit/xinitrc I have :
....
sysmodmap=$xinitdir/.Xmodmap
...
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
...

and finally everything work!

Thanks!

Efo :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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