diff --git a/.config/sway/config b/.config/sway/config index 545b052..8627c9e 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -13,6 +13,10 @@ set $menu bemenu-run output * bg ~/.local/share/backgrounds/pocketchip.png fill # Input settings +input "1:1:tca8418" { + xkb_layout "pocketchip" + xkb_options "lv3:ralt_switch_multikey" +} input "1:1:1c25000.rtp" { map_to_region 0 0 480 272 calibration_matrix -1.063517 0 1.032310 0 -1.214286 1.075894 diff --git a/.xkb/symbols/pocketchip b/.xkb/symbols/pocketchip new file mode 100644 index 0000000..d15f4ab --- /dev/null +++ b/.xkb/symbols/pocketchip @@ -0,0 +1,32 @@ +partial alphanumeric_keys +xkb_symbols "pocketchip" +{ + include "us" + name[Group1]= "PocketCHIP keys"; + key { [ slash, question, backslash ] }; + key { [ b, B, grave ] }; + key { [ n, N, asciitilde ] }; + key { [ m, M, colon ] }; + key { [ period, comma, semicolon ] }; + key { [ h, H, less ] }; + key { [ j, J, greater ] }; + key { [ k, K, apostrophe ] }; + key { [ l, L, quotedbl ] }; + key { [ y, Y, braceleft ] }; + key { [ u, U, braceright ] }; + key { [ i, I, bracketleft ] }; + key { [ o, O, bracketright ] }; + key { [ p, P, bar ] }; + key { [ 1, exclam, F1 ] }; + key { [ 2, at, F2 ] }; + key { [ 3, numbersign, F3 ] }; + key { [ 4, dollar, F4 ] }; + key { [ 5, percent, F5 ] }; + key { [ 6, asciicircum, F6 ] }; + key { [ 7, ampersand, F7 ] }; + key { [ 8, asterisk, F8 ] }; + key { [ 9, parenleft, F9 ] }; + key { [ 0, parenright, F10 ] }; + key { [ minus, underscore, F11 ] }; + key { [ equal, plus, F12 ] }; +};