Announcement

Collapse
No announcement yet.

Alt-Gr/Right-Alt

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Alt-Gr/Right-Alt

    Just curious.
    If I use the Alt-Gr/Right-Alt key, I can type quite a few "funny" characters.
    On a Spanish keyboard, they are:
    |@#~½¬{[]}\@ł€¶ŧ←↓→øþ[]æßðđŋħĸł~{}|«»¢“”nµ─·̣̣
    by Alt-Gr-key and
    ¡⅛£$⅜⅝⅞™±°¿~ΩŁ¢®Ŧ¥↑ıØÞØƧЪŊĦ&Ł{¦<>©‘’Nº×÷˙
    by Alt-Gr-Shift-key.

    Some are redundant - I have them anyway - and some repeated.

    Two things I'm curious about:
    1) Are presets different on a US or other keyboard (those are obtained by Alt-Gr/Right-Alt + all keys - 1-0, Q-P. etc.
    2) How do I map them differently.

    I groogled around for it and - as often happens - just got more confused.

    #2
    If Right Alt is configured to be used as the 3rd level chooser (commonly referred to as "Alt Gr"), using it in key combinations produces the 3rd level char defined by your keyboard layout (similarly, shift+AltGr will produce the 4th level char).

    Keymaps vary based on the (language) layout, and are defined with xkb. The xkb layouts are in /usr/share/X11/xkb/symbols/ (the layout variants for spanish is /usr/share/X11/xkb/symbols/es, and it uses (includes) the latin(type4) basic layout with the "spanish" changes).

    While it's possible to define your own xkb layouts (you shouldn't edit the layouts directly in /usr/share/X11/xkb, because your changes will get overwritten on xkb upgrades), this can be a bit overwhelming for small changes. Instead, you can use xmodmap to make changes to your current layout. You can use "xmodmap -pke > $HOME/.Xmodmap" to save your current layout, and then modify that file (which is read at login) to make some changes. I'll provide some links on xkb/xmodmap, but you can find more resources on the internet:

    https://en.wikipedia.org/wiki/AltGr_key
    https://wiki.archlinux.org/index.php...oard_extension
    https://wiki.archlinux.org/index.php/xmodmap
    https://deskthority.net/wiki/Xmodmap
    http://manpages.ubuntu.com/manpages/...xmodmap.1.html
    Last edited by kubicle; Feb 16, 2020, 01:05 AM.

    Comment


      #3
      Pfff. It's worse than Indiana Jones and the Fate of Atlantis
      Still, I found some xmodmap "cheat sheets"... some characters I can actually see, some have Atlantean descriptions like Tcaron or zabovedot... still, I guess it's a good project for a stormy day.

      Thanks.
      Last edited by Don B. Cilly; Feb 16, 2020, 02:08 AM. Reason: Added cilly link to show I'm well equipped for stormy days :·)

      Comment


        #4
        Originally posted by Don B. Cilly View Post
        some have Atlantean descriptions like Tcaron or zabovedot
        You can probably find lists for recognized char names on the internet, at least for the most common ones.

        http://wiki.linuxquestions.org/wiki/...sed_by_Xmodmap

        Comment


          #5
          Yes that page is just what I was referring to. Coincidentally ;·), it's the first that comes up if you groogle around (with Google) with "xmodmap cheat sheet"
          And yes, I can find the equivalent unicode symbol for the Atlantean names and therefore have all the elements in the equation.

          No storms expected for the next few days, but they'll come eventually :·)

          Comment


            #6
            OOPS.
            I booted up this morning. No Plasma. Luckily conky was working, so I noticed a kglobalaccel5 process where it shouldn't be - at the top of the list.
            After about five minutes I got the Plasma back, and working fine.
            Groogled around for kglobalaccel5 problems... someone at the far edge of the galactic sector mentioned that "if you have a custom .Xmodmap file, woe to you".

            I deleted it. Rebooted, and 'saul good-man.

            Comment


              #7
              Originally posted by Don B. Cilly View Post
              OOPS.
              I booted up this morning. No Plasma. Luckily conky was working, so I noticed a kglobalaccel5 process where it shouldn't be - at the top of the list.
              After about five minutes I got the Plasma back, and working fine.
              Groogled around for kglobalaccel5 problems... someone at the far edge of the galactic sector mentioned that "if you have a custom .Xmodmap file, woe to you".

              I deleted it. Rebooted, and 'saul good-man.
              That bug qualifies as old :P. Good catch.
              I haven't run into it as I actually have made my own xkb layout (to get special characters used in coding more accessible on my localized layout, with a few additional changes), so I don't actually use .Xmodmap.
              You might be able to work around by running xmodmap manually when necessary without relying on the "automatically read" .Xmodmap, but don't know whether it is actually worth it and/or how future proof it is (I don't know whether xmodmap works on wayland, for example).

              It your stormy days get intensive enough to delve into xkb layouts, I can give you some tips if you need them.

              Comment

              Working...
              X