LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Load xmodmap at startup (https://www.linuxquestions.org/questions/debian-26/load-xmodmap-at-startup-222543/)

short101 08-26-2004 03:26 AM

Load xmodmap at startup
 
Hey guys.
Just wondering if anyone knows how to get xmodmap to load at startup. I'm running kde 3.2 with kdm as the xwindow manager. When I had fedora on my laptop and I had got some keys working with xmodmap, it used to start at bootup, but it doesnt seem to load at startup with debian and kdm. I saw something about gdm 2.2 not having backwards compatability with it, and was just wondering if it was the same with kde. When I type xmodmap ~./xmodmap, from the terminal, then my keys work, but after a reboot, the xmodmap file musnt get read, and the keys dont work. Probably a bit of a newb question, but I cant seem to find an answer that is kde or debian specific.

HappyTux 08-26-2004 10:15 AM

Re: Load xmodmap at startup
 
Quote:

Originally posted by short101
Hey guys.
Just wondering if anyone knows how to get xmodmap to load at startup. I'm running kde 3.2 with kdm as the xwindow manager. When I had fedora on my laptop and I had got some keys working with xmodmap, it used to start at bootup, but it doesnt seem to load at startup with debian and kdm. I saw something about gdm 2.2 not having backwards compatability with it, and was just wondering if it was the same with kde. When I type xmodmap ~./xmodmap, from the terminal, then my keys work, but after a reboot, the xmodmap file musnt get read, and the keys dont work. Probably a bit of a newb question, but I cant seem to find an answer that is kde or debian specific.

Try putting something like this near the bottom of /etc/init.d/bootmisc.sh file.

Code:


## Added by me to load xmodmap
if [ -f ~/.xmodmap ]; then
    source ~/.xmodmap
fi

It may work if you just put it into your ~/.bash_profile it should be read on login.

short101 08-27-2004 08:09 AM

Thanks happytux, but option one didnt work, putting it in the /bootmisc.sh file. What is the full path for the bash profile?


All times are GMT -5. The time now is 11:16 AM.