[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    trouble setting up dual layout keyboard
From:       "=?ISO-8859-1?Q?S=E9bastien_Barth=E9lemy?=" <barthelemy () crans ! org>
Date:       2008-11-30 19:22:08
Message-ID: 78f7ab620811301122j38566fcbufcc669bb90d57973 () mail ! gmail ! com
[Download RAW message or body]

Hello,

I'm using X.Org 1.5.2 (the one shipped with ubuntu intrepid ibex) and
I would like to setup my keyboard in the following way:
 - use two layouts: US and french
 - switch between the layouts by pressing both alt keys together
 - use the caps lock key as compose

I tried this command:
$ setxkbmap -model evdev -layout "fr,us" -option "grp:alts_toggle"
-option "compose:caps"

Which results in
$ setxkbmap -print
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(azerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include
pc+fr+us:2+inet(evdev)+level3(ralt_switch_for_alts_toggle):1+level3(ralt_switch_for_alts_toggle):2+group(alts_toggle)+compose(caps)"	};
  xkb_geometry  { include "pc(pc104)"	};

However, it does not work perfectly:
* Pressing both alt keys switch from US to french but does not switch
back to french
* In the US layout caps lock key behaves as caps lock (bad). In the
french layout, the caps lock key behaves simultaneously as compose and
caps lock

I'm quite lost, and the doc I found [1] was not much helpful. I cannot
believe I'm the only one with such settings. Any idea why it does not
work ?

[1] http://www.x.org/wiki/XKB

-- 
Thank you in advance,
Sébastien Barthélemy
_______________________________________________
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic