Re: [dwm] key bindings / french layout

From: Riccardo Murri <riccardo.murri_AT_gmail.com>
Date: Tue, 9 Oct 2007 21:29:50 +0200

On 10/9/07, Xavier <shiningxc_AT_gmail.com> wrote:
> On Tue, Oct 09, 2007 at 08:09:45PM +0200, Marek Bernat wrote:
> > Good way is to start with your default plain keymay ("us" usually, but I use
> > "usdvorak") and map (RAlt + $letter) to an accented $letter. I think it's
> > much better than any other way for using accented characters. ...especially
> > when you're writing in TeX in your native language.
> > [deletia]
>
> That might be an ideal solution. That's actually partly a bit how "us(intl)"
> works, without the dead keys.
> For example, RAlt + e = é and RAlt + , = ç.
> I am afraid that's the only two I can write though, so it would indeed be
> much better if I could just add similar shortcuts on top of "us".
>
> Any pointers on how to do this?
>
>

This is the relevant snippet from my `~/.Xmodmap` (look for key names
in `/usr/include/X11/Xkeysimdef.h`; they are case-sensitive)::

  ! ## key Shift Mode_switch Shift+Mode_switch
  ! -----------------------------------------------------------------------
  keycode 10 = 1 exclam exclamdown
  keycode 11 = 2 at twosuperior onehalf
  keycode 12 = 3 numbersign threesuperior onethird
  keycode 13 = 4 dollar EuroSign sterling
  keycode 15 = 6 asciicircum dead_circumflex
  keycode 19 = 0 parenright emptyset
  keycode 25 = w W eacute Eacute
  keycode 26 = e E egrave Egrave
  keycode 30 = u U ugrave Ugrave
  keycode 31 = i I igrave Igrave
  keycode 32 = o O ograve Ograve
  keycode 38 = a A agrave Agrave
  keycode 48 = apostrophe quotedbl dead_acute dead_diaeresis
  keycode 49 = grave asciitilde dead_grave dead_tilde
  keycode 54 = c C ccedilla Ccedilla
  keycode 59 = comma less dead_abovedot guillemotleft
  keycode 60 = period greater dead_belowdot guillemotright
  keycode 61 = slash question questiondown

The symbols in the third and fourth column are obtained by pressing
Mode_switch+key; `Mode_switch` is usually bound to RAlt, but I usually
rebind it to Apple/Windows keys (on *both* sides, since it's difficult
to press RWin+key_on_the_right_half_of_keybd)::

  ! 'Apple' keys are Mode_switch
  remove mod1 = Meta_R
  keycode 115 = Mode_switch
  clear mod2
  add mod2 = Mode_switch

Riccardo
Received on Tue Oct 09 2007 - 21:29:52 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:58:26 UTC