Skip to content

Instantly share code, notes, and snippets.

@rios0rios0
Last active December 30, 2021 15:54
Show Gist options
  • Select an option

  • Save rios0rios0/315906c6fe3bb65051c64955269e27b1 to your computer and use it in GitHub Desktop.

Select an option

Save rios0rios0/315906c6fe3bb65051c64955269e27b1 to your computer and use it in GitHub Desktop.

Revisions

  1. rios0rios0 revised this gist Jan 28, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    #### Bug:
    Lag on question key, or other key, from ABTN2 Keyboard
    Lag on question key, or other key, from ABNT2 keyboard

    #### Fix:
    Edit file:
  2. rios0rios0 created this gist Jan 28, 2019.
    12 changes: 12 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #### Bug:
    Lag on question key, or other key, from ABTN2 Keyboard

    #### Fix:
    Edit file:
    ```bash
    sudo vi /usr/share/X11/xkb/symbols/br
    ```
    Then comment line (line number: 39):
    ```bash
    modifier_map Mod3 { Scroll_Lock };
    ```
    44 changes: 44 additions & 0 deletions xkb_symbols_br.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    default
    xkb_symbols "abnt2" {

    // Based on a very simple Brazilian ABNT2 keyboard,
    // by Ricardo Y. Igarashi (iga@that.com.br).
    // With added support for dead keys in I18N applications,
    // by Conectiva (http://www.conectiva.com.br).

    include "latin"
    name[Group1]="Portuguese (Brazil)";

    key <TLDE> { [ apostrophe, quotedbl, notsign, notsign ] };
    key <AE02> { [ 2, at, twosuperior, onehalf ] };
    key <AE03> { [ 3, numbersign, threesuperior, threequarters ] };
    key <AE04> { [ 4, dollar, sterling, onequarter ] };
    key <AE05> { [ 5, percent, cent, threeeighths ] };
    key <AE06> { [ 6, dead_diaeresis, notsign, diaeresis ] };
    key <AE12> { [ equal, plus, section, dead_ogonek ] };

    key <AD01> { [ q, Q, slash, slash ] };
    key <AD02> { [ w, W, question, question ] };
    key <AD03> { [ e, E, EuroSign, EuroSign ] };
    key <AD04> { [ r, R, registered, registered ] };
    key <AD11> { [ dead_acute, dead_grave, acute, grave ] };
    key <AD12> { [ bracketleft, braceleft, ordfeminine, dead_macron ] };
    key <BKSL> { [ bracketright, braceright, masculine, masculine ] };

    key <AC10> { [ ccedilla, Ccedilla, dead_acute,dead_doubleacute ] };
    key <AC11> { [ dead_tilde,dead_circumflex, asciitilde, asciicircum ] };

    key <LSGT> { [ backslash, bar, masculine, dead_breve ] };
    key <AB03> { [ c, C, copyright, copyright ] };
    key <AB07> { [ m, M, mu, mu ] };
    key <AB10> { [ semicolon, colon, dead_belowdot, dead_abovedot ] };

    // The ABNT-2 keyboard has this special key:
    key <AB11> { [ slash, question, degree, questiondown ] };

    #modifier_map Mod3 { Scroll_Lock };

    include "kpdl(comma)"

    include "level3(ralt_switch)"
    };