Skip to content

Instantly share code, notes, and snippets.

@carvemerson
Forked from rios0rios0/README.md
Created December 30, 2021 15:54
Show Gist options
  • Save carvemerson/8bfa214b77bdf9c305e56bb4c1920910 to your computer and use it in GitHub Desktop.
Save carvemerson/8bfa214b77bdf9c305e56bb4c1920910 to your computer and use it in GitHub Desktop.
.sh - Fix lag bug on ABNT2 keyboard in Ubuntu 18.04.01 LTS

Bug:

Lag on question key, or other key, from ABNT2 keyboard

Fix:

Edit file:

sudo vi /usr/share/X11/xkb/symbols/br

Then comment line (line number: 39):

modifier_map Mod3   { Scroll_Lock };
default
xkb_symbols "abnt2" {
// Based on a very simple Brazilian ABNT2 keyboard,
// by Ricardo Y. Igarashi ([email protected]).
// 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)"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment