wvkbd

git clone https://git.tarina.org/wvkbd
Log | Files | Refs | README | LICENSE

commit f0528fa0de4cd2d9f6371b6bac5cebe0ca4681e7
parent bdfdf559b49008d64f0b876e33f1980b7f8531b1
Author: Maarten van Gompel <proycon@anaproy.nl>
Date:   Tue, 24 Aug 2021 22:01:13 +0200

updated emoji layer + minor fixes in other layouts

Diffstat:
Mkeymap.mobintl.h | 24++++++++++++------------
Mlayout.mobintl.h | 97++++++++++++++++++++++++++++++++++++++++++-------------------------------------
2 files changed, 64 insertions(+), 57 deletions(-)

diff --git a/keymap.mobintl.h b/keymap.mobintl.h @@ -1173,18 +1173,18 @@ xkb_symbols \"(unnamed)\" {\ name[group1]=\"wvkbd\";\ \ key <ESC> { [ Escape ] };\ - key <AE01> { [ 1, exclam ] };\ - key <AE02> { [ 2, at ] };\ - key <AE03> { [ 3, numbersign ] };\ - key <AE04> { [ 4, dollar ] };\ - key <AE05> { [ 5, percent ] };\ - key <AE06> { [ 6, asciicircum ] };\ - key <AE07> { [ 7, ampersand ] };\ - key <AE08> { [ 8, asterisk ] };\ - key <AE09> { [ 9, parenleft ] };\ - key <AE10> { [ 0, parenright ] };\ - key <AE11> { [ minus, underscore ] };\ - key <AE12> { [ equal, plus ] };\ + key <AE01> { [ 1, exclam, F1 ] };\ + key <AE02> { [ 2, at, F2 ] };\ + key <AE03> { [ 3, numbersign, F3 ] };\ + key <AE04> { [ 4, dollar, F4 ] };\ + key <AE05> { [ 5, percent, F5 ] };\ + key <AE06> { [ 6, asciicircum, F6 ] };\ + key <AE07> { [ 7, ampersand, F7 ] };\ + key <AE08> { [ 8, asterisk, F8 ] };\ + key <AE09> { [ 9, parenleft, F9 ] };\ + key <AE10> { [ 0, parenright, F10 ] };\ + key <AE11> { [ minus, underscore, EuroSign ] };\ + key <AE12> { [ equal, plus, sterling ] };\ key <BKSP> { [ BackSpace, BackSpace ] };\ key <TAB> { [ Tab, ISO_Left_Tab ] };\ key <AD01> { [ q, Q, 1 ] };\ diff --git a/layout.mobintl.h b/layout.mobintl.h @@ -16,13 +16,13 @@ enum layout_id { Simple, Cyrillic, Arabic, + Emoji, ComposeA, ComposeE, ComposeY, ComposeU, ComposeI, ComposeO, - ComposeQ, ComposeW, ComposeR, ComposeT, @@ -62,6 +62,7 @@ enum layout_id { static enum layout_id layers[] = { Full, //First layout is the default layout on startup Special, + Emoji, Simple, Cyrillic, Arabic, @@ -75,8 +76,9 @@ static const char *default_font = "Monospace 15"; static struct key keys_full[], keys_special[], keys_simple[], keys_cyrillic[], keys_arabic[], + keys_emoji[], keys_compose_a[], keys_compose_e[], keys_compose_y[], keys_compose_u[], - keys_compose_i[], keys_compose_o[], keys_compose_q[], keys_compose_w[], + keys_compose_i[], keys_compose_o[], keys_compose_w[], keys_compose_r[], keys_compose_t[], keys_compose_p[], keys_compose_s[], keys_compose_d[], keys_compose_f[], keys_compose_g[], keys_compose_h[], keys_compose_j[], keys_compose_k[], keys_compose_l[], keys_compose_z[], @@ -94,13 +96,13 @@ static struct layout layouts[NumLayouts] = { [Simple] = {keys_simple, "latin", "simple"}, [Cyrillic] = {keys_cyrillic, "cyrillic", "cyrillic"}, [Arabic] = {keys_arabic, "arabic", "arabic"}, + [Emoji] = {keys_emoji, "latin", "emoji"}, [ComposeA] = {keys_compose_a, "latin"}, [ComposeE] = {keys_compose_e, "latin"}, [ComposeY] = {keys_compose_y, "latin"}, [ComposeU] = {keys_compose_u, "latin"}, [ComposeI] = {keys_compose_i, "latin"}, [ComposeO] = {keys_compose_o, "latin"}, - [ComposeQ] = {keys_compose_q, "latin"}, [ComposeW] = {keys_compose_w, "latin"}, [ComposeR] = {keys_compose_r, "latin"}, [ComposeT] = {keys_compose_t, "latin"}, @@ -215,7 +217,7 @@ static struct key keys_full[] = { {"", "", 0.0, EndRow}, {"", "", 0.5, Pad}, - {"q", "Q", 1.0, Code, KEY_Q, &layouts[ComposeQ]}, + {"q", "Q", 1.0, Code, KEY_Q, &layouts[Emoji]}, {"w", "W", 1.0, Code, KEY_W, &layouts[ComposeW]}, {"e", "E", 1.0, Code, KEY_E, &layouts[ComposeE]}, {"r", "R", 1.0, Code, KEY_R, &layouts[ComposeR]}, @@ -306,7 +308,7 @@ static struct key keys_special[] = { {"<", "ยซ", 1.0, Code, KEY_COMMA, 0, AltGr}, {">", "ยป", 1.0, Code, KEY_DOT, 0, AltGr}, {"ยก", "ยฟ", 1.0, Code, KEY_MENU}, - {"", "", 1.0, Pad}, + {"๐Ÿ™‚", "๐Ÿ™‚", 1.0, Layout, 0, &layouts[Emoji]}, {"AGr", "AGr", 1.0, Mod, AltGr, .scheme = 1}, {"โŒซ", "โŒซ", 1.0, Code, KEY_BACKSPACE, .scheme = 1}, {"", "", 0.0, EndRow}, @@ -324,7 +326,7 @@ static struct key keys_special[] = { static struct key keys_simple[] = { {"Tab", "Tab", 0.5, Code, KEY_TAB, .scheme = 1}, - {"q", "Q", 1.0, Code, KEY_Q, &layouts[ComposeQ]}, + {"q", "Q", 1.0, Code, KEY_Q, &layouts[Emoji]}, {"w", "W", 1.0, Code, KEY_W, &layouts[ComposeW]}, {"e", "E", 1.0, Code, KEY_E, &layouts[ComposeE]}, {"r", "R", 1.0, Code, KEY_R, &layouts[ComposeR]}, @@ -463,7 +465,7 @@ static struct key keys_arabic[] = { {"ุฎ", "<", 1.0, Code, KEY_LEFTBRACE}, {"", "", 0.0, EndRow}, - {"ุด", "ู€ู", 0.0, Code, KEY_A}, + {"ุด", "ู€ู", 1.0, Code, KEY_A}, {"ุณ", "ู€ู", 1.0, Code, KEY_S}, {"ูŠ", "]", 1.0, Code, KEY_D}, {"ุจ", "[", 1.0, Code, KEY_F}, @@ -507,7 +509,7 @@ static struct key keys_compose_a[] = { {"รฃ", "รƒ", 1.0, Copy, 0x00E3, 0, 0x00C3}, {"รค", "ร„", 1.0, Copy, 0x00E4, 0, 0x00C4}, {"รฅ", "ร…", 1.0, Copy, 0x00E5, 0, 0x00C5}, - {"รฆ", "ร†", 1.0, Copy, 0x00E5, 0, 0x00C6}, + {"รฆ", "ร†", 1.0, Copy, 0x00E7, 0, 0x00C6}, {"ฤ", "ฤ€", 1.0, Copy, 0x0101, 0, 0x0100}, {"ฤƒ", "ฤ‚", 1.0, Copy, 0x0103, 0, 0x0102}, {"ฤ…", "ฤ„", 1.0, Copy, 0x0105, 0, 0x0104}, @@ -662,44 +664,49 @@ static struct key keys_compose_i[] = { {"", "", 0.0, Last}, }; -static struct key keys_compose_q[] = { - {"๐Ÿ™‚", "", 1.0, Copy, 0x1f642, 0, 0}, // Emojis - {"๐Ÿ˜€", "", 1.0, Copy, 0x1f600, 0, 0}, - {"๐Ÿ˜", "", 1.0, Copy, 0x1f601, 0, 0}, - {"๐Ÿ˜‚", "", 1.0, Copy, 0x1f602, 0, 0}, - {"๐Ÿ˜ƒ", "", 1.0, Copy, 0x1f603, 0, 0}, - {"๐Ÿ˜„", "", 1.0, Copy, 0x1f604, 0, 0}, - {"๐Ÿ˜…", "", 1.0, Copy, 0x1f605, 0, 0}, - {"๐Ÿ˜†", "", 1.0, Copy, 0x1f606, 0, 0}, - {"๐Ÿ˜‡", "", 1.0, Copy, 0x1f607, 0, 0}, - {"๐Ÿ˜ˆ", "", 1.0, Copy, 0x1f608, 0, 0}, - {"", "", 0.0, EndRow}, - {"๐Ÿ˜‰", "", 1.0, Copy, 0x1f609, 0, 0}, - {"๐Ÿ˜Š", "", 1.0, Copy, 0x1f60a, 0, 0}, - {"๐Ÿ˜‹", "", 1.0, Copy, 0x1f60b, 0, 0}, - {"๐Ÿ˜Œ", "", 1.0, Copy, 0x1f60c, 0, 0}, - {"๐Ÿ˜", "", 1.0, Copy, 0x1f60d, 0, 0}, - {"๐Ÿ˜Ž", "", 1.0, Copy, 0x1f60e, 0, 0}, - {"๐Ÿ˜", "", 1.0, Copy, 0x1f60f, 0, 0}, - {"๐Ÿ˜", "", 1.0, Copy, 0x1f610, 0, 0}, - {"๐Ÿ˜’", "", 1.0, Copy, 0x1f612, 0, 0}, - {"๐Ÿ˜“", "", 1.0, Copy, 0x1f613, 0, 0}, - {"", "", 0.0, EndRow}, - {"๐Ÿ˜›", "", 1.0, Copy, 0x1f61b, 0, 0}, - {"๐Ÿ˜ฎ", "", 1.0, Copy, 0x1f62e, 0, 0}, - {"๐Ÿ˜Ÿ", "", 1.0, Copy, 0x1f61f, 0, 0}, - {"๐Ÿ˜Ÿ", "", 1.0, Copy, 0x1f620, 0, 0}, - {"๐Ÿ˜ข", "", 1.0, Copy, 0x1f622, 0, 0}, - {"๐Ÿ˜ญ", "", 1.0, Copy, 0x1f62d, 0, 0}, - {"๐Ÿ˜ณ", "", 1.0, Copy, 0x1f633, 0, 0}, - {"๐Ÿ˜ด", "", 1.0, Copy, 0x1f634, 0, 0}, - {"โŒซ", "โŒซ", 2.0, Code, KEY_BACKSPACE}, +static struct key keys_emoji[] = { + {"๐Ÿ™‚", "๐Ÿ™", 1.0, Copy, 0x1f642, 0, 0x1f64f}, // Emojis + {"๐Ÿ˜€", "๐Ÿ™‹", 1.0, Copy, 0x1f600, 0, 0x1f64b}, + {"๐Ÿ˜", "โœ‹", 1.0, Copy, 0x1f601, 0, 0x270B}, + {"๐Ÿ˜‚", "๐Ÿ™‡", 1.0, Copy, 0x1f602, 0, 0x1f647}, + {"๐Ÿ˜ƒ", "๐Ÿ‘จ", 1.0, Copy, 0x1f603, 0, 0x1f468}, + {"๐Ÿ˜„", "๐Ÿ‘ฉ", 1.0, Copy, 0x1f604, 0, 0x1f469}, + {"๐Ÿ˜…", "๐Ÿ‘ถ", 1.0, Copy, 0x1f605, 0, 0x1f476}, + {"๐Ÿ˜†", "๐Ÿ‘ป", 1.0, Copy, 0x1f606, 0, 0x1f47b}, + {"๐Ÿ˜‡", "โœจ", 1.0, Copy, 0x1f607, 0, 0x2728}, + {"๐Ÿคฃ", "๐Ÿ’ฐ", 1.0, Copy, 0x1f923, 0, 0x1f4b0}, + {"", "", 0.0, EndRow}, + {"๐Ÿ˜‰", "๐Ÿ•", 1.0, Copy, 0x1f609, 0, 0x1f407}, + {"๐Ÿ˜Š", "๐Ÿˆ", 1.0, Copy, 0x1f60a, 0, 0x1f408}, + {"๐Ÿ˜‹", "๐Ÿง", 1.0, Copy, 0x1f60b, 0, 0x1f427}, + {"๐Ÿ˜Œ", "๐Ÿ’”", 1.0, Copy, 0x1f60c, 0, 0x1f494}, + {"๐Ÿ˜", "๐Ÿ˜˜", 1.0, Copy, 0x1f60d, 0, 0x1f618}, + {"๐Ÿ˜˜", "๐Ÿ’•", 1.0, Copy, 0x1f618, 0, 0x1f495}, + {"๐Ÿ˜Ž", "โค", 1.0, Copy, 0x1f60e, 0, 0x2764}, + {"๐Ÿ˜", "๐Ÿ˜", 1.0, Copy, 0x1f610, 0, 0x1f60f}, + {"๐Ÿ˜’", "๐Ÿ‘€", 1.0, Copy, 0x1f612, 0, 0x1f440}, + {"๐Ÿ˜“", "๐Ÿ’€", 1.0, Copy, 0x1f613, 0, 0x1f480}, {"", "", 0.0, EndRow}, - {"Abc", "Abc", 1.0, BackLayer}, - {",", "'", 1.0, Code, KEY_COMMA}, - {"", "", 5.0, Code, KEY_SPACE}, - {".", "?", 1.0, Code, KEY_DOT}, - {"Enter", "Enter", 2.0, Code, KEY_ENTER}, + {"โ‡ง", "โ‡ง", 1.0, Mod, Shift, .scheme = 1}, + {"๐Ÿ˜›", "๐Ÿ˜œ", 1.0, Copy, 0x1f61b, 0, 0x1f61c}, + {"๐Ÿ˜ฎ", "๐Ÿ˜", 1.0, Copy, 0x1f62e, 0, 0x1f61d}, + {"๐Ÿ˜Ÿ", "๐Ÿ˜ž", 1.0, Copy, 0x1f61f, 0, 0x1f61e}, + {"๐Ÿ˜Ÿ", "๐Ÿฅบ", 1.0, Copy, 0x1f620, 0, 0x1f97a }, + {"๐Ÿ˜ข", "๐Ÿ‘ฟ", 1.0, Copy, 0x1f622, 0, 0x1f47f}, + {"๐Ÿ˜ญ", "๐Ÿ˜ฏ", 1.0, Copy, 0x1f62d, 0, 0x1f62f}, + {"๐Ÿ˜ณ", "๐Ÿ˜•", 1.0, Copy, 0x1f633, 0, 0x1f615}, + {"๐Ÿ˜ด", "๐Ÿ˜ต", 1.0, Copy, 0x1f634, 0, 0x1f635}, + {"โŒซ", "โŒซ", 1.0, Code, KEY_BACKSPACE, .scheme=1}, + {"", "", 0.0, EndRow}, + {"Abc", "Abc", 1.0, BackLayer, .scheme=1}, + {"๐Ÿ‘†", "๐Ÿ‘Š", 1.0, Copy, 0x1f446, 0, 0x1f44a}, + {"๐Ÿ‘‡", "๐Ÿ‘Œ", 1.0, Copy, 0x1f447, 0, 0x1f44c}, + {"๐Ÿ‘ˆ", "๐Ÿ‘", 1.0, Copy, 0x1f448, 0, 0x1f44f}, + {"๐Ÿ‘‰", "๐Ÿ‘", 1.0, Copy, 0x1f449, 0, 0x1f450}, + {"๐Ÿ‘‹", "๐Ÿ™Œ", 1.0, Copy, 0x1f603, 0, 0x1f44c}, + {"๐Ÿ‘", "โœ…", 1.0, Copy, 0x1f604, 0, 0x2705}, + {"๐Ÿ‘Ž", "๐Ÿ’ช", 1.0, Copy, 0x1f605, 0, 0x1f606}, + {"Enter", "Enter", 2.0, Code, KEY_ENTER, .scheme=1}, {"", "", 0.0, Last}, };