xkb - Set Shift+Alt+Right to print ⇒ (unicode 21d2)

08
2014-07
  • jdevelop

    I tried so far to add

    key <RGHT> {
        type[group1]= "SHIFT+ALT",
        symbols[group1] = [ Right, U21D2 ]
    };
    

    it doesn't work, however xev shows me:

    KeyPress event, serial 33, synthetic NO, window 0x1a00001,
    root 0x9b, subw 0x0, time 4713506, (1706,645), root:(1707,662),
    state 0x19, keycode 114 (keysym 0x10021d2, U21D2), same_screen YES,
    XLookupString gives 3 bytes: (e2 87 92) "⇒"
    XmbLookupString gives 3 bytes: (e2 87 92) "⇒"
    XFilterEvent returns: False
    

    and

    xmodmap -pke | grep 114    
    keycode 114 = Right U21D2 Right U21D2
    

    If I change SHIFT+ALT into TWO_LEVEL, then Shift+Right does print "⇒" character

    What do I miss there?

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    xkb - setting up a (not annoying) multi-language input in Linux, X11
  • kagali-san

    currently I use XFCE and its Xkb plugin to switch between three layouts (us, russian and ukrainian; sometimes arabic input is wanted too).

    on Windows, Punto switcher allows me to use one combination to switch between en/us layouts, and another to switch between all installed layouts.

    here, <switch key> (caps lock) just toggles between layout 1, variant 1, layout 2, variant 1, layout 3, variant 1.

    Ukrainian layout is fine at OpenOffice and IRC, but unfortunatelly don't want it in my emacs, firefox, and console. So looking for either:

    • good replacement for standart switcher, to allow per-window (process name) layout management, or to allow two layout sets being switched by special key

    • good replacement for XFCE environment itself. Maybe KDE4 supports the input in right way?

    • a way to create a variant of russian layout, where ukrainian symbols are activated with compose key. I've detected (with a help of xev) that left/right winkeys are having different keycode, so going to use one of them as compose key.


  • Related Answers
  • Ignacio Vazquez-Abrams

    GNOME allows per-window layouts.

    "Separate layout for each window"

  • kagali-san

    I had to start hacking XFCE's applets. It's a joy.