LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 10-21-2010, 07:51 AM   #1
page_seven
Member
 
Registered: Jun 2010
Distribution: CRUX 3.0
Posts: 76

Rep: Reputation: 0
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?
 
Old 10-22-2010, 05:15 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,094
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
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
 
Old 10-22-2010, 11:34 PM   #3
page_seven
Member
 
Registered: Jun 2010
Distribution: CRUX 3.0
Posts: 76

Original Poster
Rep: Reputation: 0
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
 
Old 10-27-2010, 05:19 AM   #4
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,094
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
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?
 
  


Reply

Tags
xinitrc, xmodmap


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xmodmap help monkiidansu Linux - Software 1 08-13-2007 01:31 PM
xmodmap not working in .xinitrc kmeehl Slackware 1 12-03-2004 05:14 PM
xmodmap snt Linux - Software 0 11-15-2004 08:59 AM
xmodmap ntilde Mandriva 0 07-27-2004 01:28 PM
xinitrc won't execute xmodmap! carboncopy Slackware 1 03-17-2004 03:26 AM


All times are GMT -5. The time now is 07:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration