[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xmodmap



On Tue, Apr 28, 2009 at 11:42:13 +0000, marc wrote:
> Florian Kulzer said:

[...]

> > Once you are done editing the file you can compile the new keymap and
> > update the layout of the X server (both steps with one command):
> > 
> > $ xkbcomp layout.xkb $DISPLAY
> > 
> > The changes should be effective immediately.
> 
> Thanks very much for this, you nailed the problem precisely.
> 
> One further question, is there a way to make this change permanent or do 
> I have to run:
> 
>   $ xkbcomp layout.xkb $DISPLAY
> 
> at every login?

I think you have to run this at every login, but you do not have to do
that manually. In scripts I would make sure to discard the spurious
warnings about keycodes without symbols:

xkbcomp layout.xkb $DISPLAY &>/dev/null

Alternatively, you can edit the relevant keymap in
/usr/share/X11/xkb/symbols/ or create a copy with a new name, modify the
copy and configure Xorg to always load the new layout (or both the new
and the old layout with a key combination to quickly switch between the
two).

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


Reply to: