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:
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},
};