LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   how to use xmodmap in ~/.xinitrc (https://www.linuxquestions.org/questions/linux-desktop-74/how-to-use-xmodmap-in-%7E-xinitrc-839537/)

page_seven 10-21-2010 07:51 AM

how to use xmodmap in ~/.xinitrc
 
It is my understanding that X is mangling my keymap that is loaded from .xinitrc because of hotplugging and xkb. I only use fvwm/startx, what can I do?

estabroo 10-22-2010 05:15 AM

just set up a file with the things/commands you want xmodmap to do (man page has a fine example of swapping ctrl and capslock) and then in your ~/.xinitrc file just add
xmodmap /path/to/that/file

page_seven 10-22-2010 11:34 PM

that's what I've done. the problem is when I start X. The new map is not loaded. I have to manually run xmodmap $HOME/.xmodmap. One solution I found through googling was to put the xmodmap command into .xinitrc twice. it works, but I haven't found a better way

estabroo 10-27-2010 05:19 AM

that is so bizarre I've never had to run it more than once in my .xinitrc, wonder if your session manager is doing so modmap on it's own. Do you just put them back to back or do you have other stuff in between the two xmodmap calls?


All times are GMT -5. The time now is 04:01 AM.