diff --git a/.xkb/symbols/usex b/.xkb/symbols/usex index 8fab4faf..4c09753b 100644 --- a/.xkb/symbols/usex +++ b/.xkb/symbols/usex @@ -1,20 +1,17 @@ //------------------------------------------------------------------------------ -// XKB Custom us keyboard +// XKB us improved //------------------------------------------------------------------------------ - -// Description: This keyboard layout is based on Xorg's "us intl". We set Caps -// Lock to act as Left Control. - -// Installation: copy this file to '/usr/{local/,}share/X11/xkb/symbols'. You +// +// Description: This keyboard layout is based on Xorg's "us" and inspired by +// "us(intl)". We switch Caps Lock and Left Control. +// +// User setup: run `xkbcomp $thisfile $DISPLAY`. +// +// System setup: copy this file to '/usr/{local/,}share/X11/xkb/symbols'. You // can use it by selecting the "usex" layout from Xorg configuration file, or by // using the following command: // $ setxkbmap usex // -// It is also possible to generate an xmodmap-compatible keymap with -// $ xmodmap -pke >> ~/.xmodmap_usex - - - // ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━┓ // │ ~ ~ │ ! ¡ │ @ ˝ │ # ¯ │ $ ¤ │ % ¢ │ ^ ^ │ & ¼ │ * ˛ │ ( ˘ │ ) ÷ │ _ × │ + ± ┃ ⌫ Back ┃ // │ ` ` │ 1 ¹ │ 2 ² │ 3 ³ │ 4 £ │ 5 € │ 6 ¥ │ 7 ½ │ 8 ¾ │ 9 ‘ │ 0 ’ │ - ⋅ │ = ≠ ┃ space ┃ @@ -32,68 +29,76 @@ // ┃Lock ⇬ ┃Meta ┃Alt ┃ ␣ Space ␣ ┃AltGr ⇮┃Menu ┃Ctrl ┃ // ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛ -partial alphanumeric_keys -xkb_symbols "basic" { +xkb_keymap { - name[Group1]= "English international with dead keys extended"; + xkb_keycodes { include "evdev+aliases(qwerty)" }; + xkb_types { include "complete" }; + xkb_compat { include "complete" }; - // Alphanumeric section - key { [ grave, asciitilde, dead_grave, dead_tilde ] }; - key { [ 1, exclam, onesuperior, exclamdown ] }; - key { [ 2, at, twosuperior, dead_doubleacute ] }; - key { [ 3, numbersign, threesuperior, dead_macron ] }; - key { [ 4, dollar, sterling, currency ] }; - key { [ 5, percent, EuroSign, cent ] }; - key { [ 6, asciicircum, yen, dead_circumflex ] }; - key { [ 7, ampersand, onehalf, onequarter ] }; - key { [ 8, asterisk, threequarters, dead_ogonek ] }; - key { [ 9, parenleft, leftsinglequotemark, dead_breve ] }; - key { [ 0, parenright, rightsinglequotemark, division ] }; - key { [ minus, underscore, 0x10022C5, multiply ] }; - key { [ equal, plus, notequal, plusminus ] }; + partial alphanumeric_keys xkb_symbols "usim" { - key { [ q, Q, agrave, Agrave ] }; - key { [ w, W, egrave, Egrave ] }; - key { [ e, E, eacute, Eacute ] }; - key { [ r, R, registered, registered ] }; - key { [ t, T, copyright, trademark ] }; - key { [ y, Y, ugrave, Ugrave ] }; - key { [ u, U, uacute, Uacute ] }; - key { [ i, I, iacute, Iacute ] }; - key { [ o, O, oacute, Oacute ] }; - key { [ p, P, aring, Aring ] }; - key { [ bracketleft, braceleft, guillemotleft, leftdoublequotemark ] }; - key { [ bracketright, braceright, guillemotright, rightdoublequotemark ] }; + include "pc" + name[Group1]= "English international with dead keys extended"; - key { [ a, A, aacute, Aacute ] }; - key { [ s, S, ssharp, section ] }; - key { [ d, D, acircumflex, Acircumflex ] }; - key { [ f, F, ecircumflex, Ecircumflex ] }; - key { [ g, G, icircumflex, Icircumflex ] }; - key { [ h, H, ocircumflex, Ocircumflex ] }; - key { [ j, J, ucircumflex, Ucircumflex ] }; - key { [ k, K, oe, OE ] }; - key { [ l, L, ae, AE ] }; - key { [ semicolon, colon, degree, dead_abovering ] }; - key { [ apostrophe, quotedbl, dead_acute, dead_diaeresis ] }; + // Alphanumeric section + key { [ grave, asciitilde, dead_grave, dead_tilde ] }; + key { [ 1, exclam, onesuperior, exclamdown ] }; + key { [ 2, at, twosuperior, dead_doubleacute ] }; + key { [ 3, numbersign, threesuperior, dead_macron ] }; + key { [ 4, dollar, sterling, currency ] }; + key { [ 5, percent, EuroSign, cent ] }; + key { [ 6, asciicircum, yen, dead_circumflex ] }; + key { [ 7, ampersand, onehalf, onequarter ] }; + key { [ 8, asterisk, threequarters, dead_ogonek ] }; + key { [ 9, parenleft, leftsinglequotemark, dead_breve ] }; + key { [ 0, parenright, rightsinglequotemark, division ] }; + key { [ minus, underscore, 0x10022C5, multiply ] }; + key { [ equal, plus, notequal, plusminus ] }; - key { [ z, Z, adiaeresis, Adiaeresis ] }; - key { [ x, X, ediaeresis, Ediaeresis ] }; - key { [ c, C, idiaeresis, Idiaeresis ] }; - key { [ v, V, odiaeresis, Odiaeresis ] }; - key { [ b, B, udiaeresis, Udiaeresis ] }; - key { [ n, N, ntilde, Ntilde ] }; - key { [ m, M, mu, mu ] }; - key { [ comma, less, ccedilla, Ccedilla ] }; - key { [ period, greater, 0x1002026, 0x1002026 ] }; - key { [ slash, question, paragraph, questiondown ] }; - key { [ backslash, bar, notsign, brokenbar ] }; + key { [ q, Q, agrave, Agrave ] }; + key { [ w, W, egrave, Egrave ] }; + key { [ e, E, eacute, Eacute ] }; + key { [ r, R, registered, registered ] }; + key { [ t, T, copyright, trademark ] }; + key { [ y, Y, ugrave, Ugrave ] }; + key { [ u, U, uacute, Uacute ] }; + key { [ i, I, iacute, Iacute ] }; + key { [ o, O, oacute, Oacute ] }; + key { [ p, P, aring, Aring ] }; + key { [ bracketleft, braceleft, guillemotleft, leftdoublequotemark ] }; + key { [ bracketright, braceright, guillemotright, rightdoublequotemark ] }; - key { [ spce, space, space, nobreakspace ] }; - key { [ less, greater, lessthanequal, greaterthanequal ] }; + key { [ a, A, aacute, Aacute ] }; + key { [ s, S, ssharp, section ] }; + key { [ d, D, acircumflex, Acircumflex ] }; + key { [ f, F, ecircumflex, Ecircumflex ] }; + key { [ g, G, icircumflex, Icircumflex ] }; + key { [ h, H, ocircumflex, Ocircumflex ] }; + key { [ j, J, ucircumflex, Ucircumflex ] }; + key { [ k, K, oe, OE ] }; + key { [ l, L, ae, AE ] }; + key { [ semicolon, colon, degree, dead_abovering ] }; + key { [ apostrophe, quotedbl, dead_acute, dead_diaeresis ] }; - key { [ Control_L ] }; - key { [ Caps_Lock ] }; + key { [ z, Z, adiaeresis, Adiaeresis ] }; + key { [ x, X, ediaeresis, Ediaeresis ] }; + key { [ c, C, idiaeresis, Idiaeresis ] }; + key { [ v, V, odiaeresis, Odiaeresis ] }; + key { [ b, B, udiaeresis, Udiaeresis ] }; + key { [ n, N, ntilde, Ntilde ] }; + key { [ m, M, mu, mu ] }; + key { [ comma, less, ccedilla, Ccedilla ] }; + key { [ period, greater, 0x1002026, 0x1002026 ] }; + key { [ slash, question, paragraph, questiondown ] }; + key { [ backslash, bar, notsign, brokenbar ] }; - include "level3(ralt_switch)" + key { [ space, space, space, nobreakspace ] }; + key { [ less, greater, lessthanequal, greaterthanequal ] }; + + key { [ Control_L ] }; + key { [ Caps_Lock ] }; + + include "level3(ralt_switch)" + include "inet(evdev)" + }; };