commit 549125161040ca8a43cd4fb7875260e94fe4e2ff
parent a5cb7d53ce7beaf02acfe4635a83aa801cd4f8c3
Author: Maarten van Gompel <proycon@anaproy.nl>
Date: Sun, 13 Jun 2021 22:28:01 +0200
added an additional minimal mobile layer
Diffstat:
1 file changed, 51 insertions(+), 3 deletions(-)
diff --git a/layout.mobile-intl.h b/layout.mobile-intl.h
@@ -16,7 +16,7 @@ static Key keys_en[KEYS] = {
{ 0 }, /* New row */
- { "↹", 0, XK_Tab, 0.5 },
+ { "↹", 0, XK_Tab, 0.75 },
{ 0, 0, XK_q, 1 },
{ 0, 0, XK_w, 1 },
{ 0, 0, XK_e, 1 },
@@ -27,7 +27,7 @@ static Key keys_en[KEYS] = {
{ 0, 0, XK_i, 1 },
{ 0, 0, XK_o, 1 },
{ 0, 0, XK_p, 1 },
- { "/", "?", XK_slash, 1 },
+ { "/", "?", XK_slash, .75 },
{ 0 }, /* New row */
@@ -67,6 +67,52 @@ static Key keys_en[KEYS] = {
{ "↲ Enter", 0, XK_Return, 2 },
};
+static Key keys_minimal[KEYS] = {
+ { 0, 0, XK_q, 1 },
+ { 0, 0, XK_w, 1 },
+ { 0, 0, XK_e, 1 },
+ { 0, 0, XK_r, 1 },
+ { 0, 0, XK_t, 1 },
+ { 0, 0, XK_y, 1 },
+ { 0, 0, XK_u, 1 },
+ { 0, 0, XK_i, 1 },
+ { 0, 0, XK_o, 1 },
+ { 0, 0, XK_p, 1 },
+
+ { 0 }, /* New row */
+
+ { 0, 0, XK_a, 1 },
+ { 0, 0, XK_s, 1 },
+ { 0, 0, XK_d, 1 },
+ { 0, 0, XK_f, 1 },
+ { 0, 0, XK_g, 1 },
+ { 0, 0, XK_h, 1 },
+ { 0, 0, XK_j, 1 },
+ { 0, 0, XK_k, 1 },
+ { 0, 0, XK_l, 1 },
+
+ { 0 }, /* New row */
+
+ { "⇧", 0, XK_Shift_L, 1.5 },
+ { 0, 0, XK_z, 1 },
+ { 0, 0, XK_x, 1 },
+ { 0, 0, XK_c, 1 },
+ { 0, 0, XK_v, 1 },
+ { 0, 0, XK_b, 1 },
+ { 0, 0, XK_n, 1 },
+ { 0, 0, XK_m, 1 },
+ { "⌫", 0, XK_BackSpace, 1.5 },
+
+ { 0 }, /* New row */
+
+ { "↺", 0, XK_Cancel, 1},
+ { "'", "\"", XK_apostrophe, 1 },
+ { ",", "<", XK_comma, 1 },
+ { "", 0, XK_space, 4 },
+ { ".", ">", XK_period, 1 },
+ { "↲ Enter", 0, XK_Return, 2 },
+};
+
#define OVERLAYS 197
static Key overlay[OVERLAYS] = {
{ 0, 0, XK_a }, //Overlay for a
@@ -550,12 +596,13 @@ static Key keys_dialer[KEYS] = {
{ 0 }, /* Last item (double 0) */
};
-#define LAYERS 5
+#define LAYERS 6
static char* layer_names[LAYERS] = {
"en",
"symbols",
"navigation",
"dialer",
+ "minimal",
"ru",
};
@@ -564,6 +611,7 @@ static Key* available_layers[LAYERS] = {
keys_symbols,
keys_navigation,
keys_dialer,
+ keys_minimal,
keys_ru
};