• [^] # Re: ALT GR

    Posté par . En réponse au message Obtenir Caps_Lock directement. Évalué à 1.

    Bon je me répond à moi-même. Après une petite recherche plus précise, la définition des touches de clavier que j'utilise est « fr-latin9 ». Le fichier se trouve (sous debian) à l'emplacement suivant :
    /etc/X11/xkb/symbols/pc/fr-latin9

    Voici son contenu (c'est un peu long mais ça pourra peut-être aider quelqu'un) :


    // (If you can't read it you probably have no business changing this file anyway:)
    //
    // Les accents circonflexes des principales voyelles sont obtenus avec
    // la touche Alt_Gr, les trémas sont obtenus par Alt_Gr + Shift.
    //
    // ____ _________ _____________ _______
    // | S A| S = Shift, A = AltGr + Shift | Imprime | Arrêt défil | Pause |
    // | s a| s = normal, a = AltGr | Exec | | Halte |
    // ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
    // ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ _______
    // | 1⁄2 "| 1 ·| 2 É| 3 ,| 4 '| 5 "| 6 || 7 È| 8 ̄| 9 Ç| 0 À| ° ÿ| + °| <-- |
    // | 1⁄4 "| & '| é ~| " #| ' {| ( [| - || è `| _ \| ç ^| à @| ) ]| = }| |
    // ========================================================================
    // | |<- | A ä| Z Å| E ¢| R Ç| T Þ| Y Ý| U ü| I ï| O ö| P '| " `| $ ë| , |
    // | ->| | a â| z å| e ¤| r ç| t þ| y ý| u û| i î| o ô| p ¶| ^ ~| £ ê| <-' |
    // ===================================================================¬ |
    // | | Q Ä| S Ø| D Ë| F a| G Æ| H Ð| J Ü| K Ï| L Ö| M o| % Ù| μ \| |
    // | MAJ | q Â| s ø| d Ê| f ±| g æ| h ð| j Û| k Î| l Ô| m 1| ù 2| * 3| |
    // ========================================================================
    // | ^ | > | W | X | C | V | B | N | ? | . | / | § | ^ |
    // | | | < || w «| x »| c ©| v ®| b ß| n ¬| , ¿| ; ×ばつ| : ÷| ! ¡| | |
    // ========================================================================
    // | | | | | | | | |
    // | Ctrl | Meta | Alt | Space Nobreakspace | AltGr | Multi|Menu | Ctrl |
    // ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
    //
    //
    // Si les touches mortes fonctionnent, utiliser les accents dits
    // « morts », i.e. fonctionnant comme l'accent circonflexe & le
    // tréma des machines à écrire ; sont disponibles :
    //
    // (^) : accent circonflexe,
    // Shift+(^) : tréma,
    // Shift+AltGr (^) : tilde,
    // AltGr (1) : accent aigu,
    // AltGr (7) : accent grave
    //
    // Pour s'en servir, procéder comme avec l'accent circonflexe & le tréma
    // sur les vielles machines à écrire :
    //
    // AltGr (1) puis e : é
    // Shift+AltGr (1) puis e : É ...

    partial default alphanumeric_keys

    xkb_symbols "basic" {

    include "pc/latin"

    name[Group1]="fr-latin9";

    key { [ oe, OE, leftdoublequotemark, rightdoublequotemark ] };
    key { [ ampersand, 1, dead_acute, periodcentered ] };
    key { [ eacute, 2, asciitilde, Eacute ] };
    key { [ quotedbl, 3, numbersign, cedilla ] };
    key { [ apostrophe, 4, braceleft, acute ] };
    key { [ parenleft, 5, bracketleft, diaeresis ] };
    key { [ minus, 6, bar, brokenbar ] };
    key { [ egrave, 7, dead_grave, Egrave ] };
    key { [ underscore, 8, backslash, macron ] };
    key { [ ccedilla, 9, asciicircum, Ccedilla ] };
    key { [ agrave, 0, at, Agrave ] };
    key { [ parenright, degree, bracketright, ydiaeresis ] };
    key { [ equal, plus, braceright, dead_abovering ] };

    key { [ a, A, acircumflex, adiaeresis ] };
    key { [ z, Z, aring, Aring ] };
    key { [ e, E, EuroSign, cent ] };
    key { [ r, R, ccedilla, Ccedilla ] };
    key { [ t, T, thorn, THORN ] };
    key { [ y, Y, yacute, Yacute ] };
    key { [ u, U, ucircumflex, udiaeresis ] };
    key { [ i, I, icircumflex, idiaeresis ] };
    key { [ o, O, ocircumflex, odiaeresis ] };
    key { [ p, P, paragraph, quoteleft ] };
    key { [ dead_circumflex, dead_diaeresis, dead_tilde, quoteright ] };
    key { [ dollar, sterling, ecircumflex, ediaeresis ] };

    key { [ q, Q, Acircumflex, Adiaeresis ] };
    key { [ s, S, oslash, Ooblique ] };
    key { [ d, D, Ecircumflex, Ediaeresis ] };
    key { [ f, F, plusminus, ordfeminine ] };
    key { [ g, G, ae, AE ] };
    key { [ h, H, eth, ETH ] };
    key { [ j, J, Ucircumflex, Udiaeresis ] };
    key { [ k, K, Icircumflex, Idiaeresis ] };
    key { [ l, L, Ocircumflex, Odiaeresis ] };
    key { [ m, M, onesuperior, masculine ] };
    key { [ ugrave, percent, twosuperior, Ugrave ] };
    key { [ asterisk, mu, threesuperior, yen ] };

    key { [ less, greater, bar ] };
    key { [ w, W, guillemotleft ] };
    key { [ x, X, guillemotright ] };
    key { [ c, C, copyright ] };
    key { [ v, V, registered ] };
    key { [ b, B, ssharp ] };
    key { [ n, N, notsign ] };
    key { [ comma, question, questiondown ] };
    key { [ semicolon, period, multiply ] };
    key { [ colon, slash, division ] };
    key { [ exclam, section, exclamdown ] };

    key { [ space, space, nobreakspace ] };

    // French uses a comma as decimal separator, but keyboards are labeled with a period
    // Will take effect when KP_Decimal is mapped to the locale decimal separator
    key { [ KP_Delete, period, KP_Delete, KP_Decimal ] };

    include "level3(ralt_switch)"
    };

    partial alphanumeric_keys
    xkb_symbols "Sundeadkeys" {

    // Modifies the basic fr-latin9 layout to use the Sun dead keys

    include "pc/fr-latin9(basic)"

    key { [ ampersand, 1, SunFA_Acute, periodcentered ] };
    key { [ egrave, 7, SunFA_Grave, Egrave ] };
    key { [ SunFA_Circum, SunFA_Diaeresis, SunFA_Tilde, quoteright ] };

    };

    partial alphanumeric_keys
    xkb_symbols "sundeadkeys" {

    include "pc/fr-latin9(Sundeadkeys)"

    };

    partial alphanumeric_keys
    xkb_symbols "nodeadkeys" {

    // Modifies the basic fr-latin9 layout to eliminate all dead keys

    include "pc/fr-latin9(basic)"

    key { [ ampersand, 1, apostrophe, periodcentered ] };
    key { [ egrave, 7, grave, Egrave ] };
    key { [ equal, plus, braceright ] };
    key { [ asciicircum, diaeresis, asciitilde, quoteright ] };
    };