From 177615481ea453ad8a2cb30ca96f1986f7620db7 Mon Sep 17 00:00:00 2001 From: Alexey Egorov Date: Tue, 22 Apr 2025 18:41:40 +0300 Subject: [PATCH] Finished UHK80 layout --- xkb_config/keycodes/{uhk80 => uhk80_keycodes} | 0 xkb_config/keymap/uhk80 | 4 +- xkb_config/symbols/grp_toggle | 21 ------ xkb_config/symbols/uhk80_symbols | 71 +++++++++++++++++++ 4 files changed, 73 insertions(+), 23 deletions(-) rename xkb_config/keycodes/{uhk80 => uhk80_keycodes} (100%) delete mode 100644 xkb_config/symbols/grp_toggle create mode 100644 xkb_config/symbols/uhk80_symbols diff --git a/xkb_config/keycodes/uhk80 b/xkb_config/keycodes/uhk80_keycodes similarity index 100% rename from xkb_config/keycodes/uhk80 rename to xkb_config/keycodes/uhk80_keycodes diff --git a/xkb_config/keymap/uhk80 b/xkb_config/keymap/uhk80 index 900652e..e58f906 100644 --- a/xkb_config/keymap/uhk80 +++ b/xkb_config/keymap/uhk80 @@ -1,7 +1,7 @@ xkb_keymap { - xkb_keycodes { include "evdev+aliases(qwerty)+uhk80" }; + xkb_keycodes { include "evdev+aliases(qwerty)+uhk80_keycodes" }; xkb_types { include "complete" }; xkb_compat { include "complete" }; - xkb_symbols { include "pc+us+ru:2+inet(evdev)+grp_toggle" }; + xkb_symbols { include "pc+uhk80_symbols+ru:2+inet(evdev)+uhk80_symbols(ru):2" }; xkb_geometry { include "pc(pc105)" }; }; diff --git a/xkb_config/symbols/grp_toggle b/xkb_config/symbols/grp_toggle deleted file mode 100644 index b06e960..0000000 --- a/xkb_config/symbols/grp_toggle +++ /dev/null @@ -1,21 +0,0 @@ -default partial modifier_keys alphanumeric_keys -xkb_symbols "uhk80" { - key {[ ISO_Level3_Shift ], type[group1]="ONE_LEVEL" }; - key {[ ISO_Next_Group ]}; - key {[ Zenkaku_Hankaku ]}; - - // fist row - key {[ section, U2206, U22C4, because ]}; - key {[ 1, exclam, exclamdown, U2044 ]}; - key {[ 2, at, trademark, EuroSign ]}; - key {[ 3, numbersign, sterling, U2039 ]}; - key {[ 4, dollar, cent, U203A ]}; - key {[ 5, percent, infinity, periodcentered ]}; - key {[ 6, asciicircum, currency, uptack ]}; - key {[ 7, ampersand, paragraph, doubledagger ]}; - key {[ 8, asterisk, enfilledcircbullet, degree ]}; - key {[ 9, parenleft, U2023, leftdoublequotemark ]}; - key {[ 0, parenright, emptyset, rightdoublequotemark ]}; - key {[ minus, underscore, endash, emdash ]}; - key {[ equal, plus, approxeq, plusminus ]}; -}; \ No newline at end of file diff --git a/xkb_config/symbols/uhk80_symbols b/xkb_config/symbols/uhk80_symbols new file mode 100644 index 0000000..df92368 --- /dev/null +++ b/xkb_config/symbols/uhk80_symbols @@ -0,0 +1,71 @@ +default partial modifier_keys alphanumeric_keys +xkb_symbols "en" { + name[Group1]= "English (US)"; + + key {[ ISO_Level3_Shift ], type[group1]="ONE_LEVEL" }; + key {[ ISO_Next_Group ]}; + key {[ Zenkaku_Hankaku ]}; + + // fist row + key {[ section, U2206, U22C4, because ]}; + key {[ 1, exclam, exclamdown, U2044 ]}; + key {[ 2, at, trademark, EuroSign ]}; + key {[ 3, numbersign, sterling, U2039 ]}; + key {[ 4, dollar, cent, U203A ]}; + key {[ 5, percent, infinity, periodcentered ]}; + key {[ 6, asciicircum, currency, uptack ]}; + key {[ 7, ampersand, paragraph, doubledagger ]}; + key {[ 8, asterisk, enfilledcircbullet, degree ]}; + key {[ 9, parenleft, U2023, leftdoublequotemark ]}; + key {[ 0, parenright, emptyset, rightdoublequotemark ]}; + key {[ minus, underscore, endash, emdash ]}; + key {[ equal, plus, approxeq, plusminus ]}; + + // second row + key {[ q, Q, U220E, implies ]}; + key {[ w, W, elementof, U2200 ]}; + key {[ e, E, notelementof, U2203 ]}; + key {[ r, R, Greek_rho, Greek_RHO ]}; + key {[ t, T, dagger, rightarrow ]}; + key {[ y, Y, yen, U2286 ]}; + key {[ u, U, notsign, U22C5 ]}; + key {[ i, I, righttack, multiply ]}; + key {[ o, O, includedin, includes ]}; + key {[ p, P, Greek_pi, Greek_PI ]}; + key {[ bracketleft, braceleft, aring, Aring ]}; + key {[ bracketright, braceright, leftsinglequotemark, rightsinglequotemark ]}; + key {[ backslash, bar, guillemetleft, guillemetright ]}; + + // third row + key {[ a, A, Greek_alpha, Greek_ALPHA ]}; + key {[ s, S, Greek_sigma, Greek_SIGMA ]}; + key {[ d, D, Greek_delta, Greek_DELTA ]}; + key {[ f, F, Greek_phi, Greek_PHI ]}; + key {[ g, G, Greek_gamma, Greek_GAMMA ]}; + key {[ h, H, union, logicalor ]}; + key {[ j, J, intersection, logicaland ]}; + key {[ k, K, identical, U22BB ]}; + key {[ l, L, Greek_lamda, Greek_LAMDA ]}; + key {[ semicolon, colon, odiaeresis, Odiaeresis ]}; + key {[ apostrophe, quotedbl, adiaeresis, Adiaeresis ]}; + + // fourth row + key {[ grave, asciitilde, uparrow, U22BD ]}; + key {[ z, Z, Greek_omega, Greek_OMEGA ]}; + key {[ x, X, U2220, U22BC ]}; + key {[ c, C, copyright, registered ]}; + key {[ v, V, radical, permille ]}; + key {[ b, B, Greek_beta, Greek_BETA ]}; + key {[ n, N, U2216, nabla ]}; + key {[ m, M, Greek_mu, Greek_MU ]}; + key {[ comma, less, lessthanequal, U2287 ]}; + key {[ period, greater, greaterthanequal, ellipsis ]}; + key {[ slash, question, division, questiondown ]}; +}; + +partial alphanumeric_keys +xkb_symbols "ru" { + // remap ё to ISOK + key {[ Cyrillic_io, Cyrillic_IO ]}; + key {[ grave, asciitilde, uparrow, U22BD ]}; +};