added an additional minimal mobile layer

This commit is contained in:
Maarten van Gompel 2021-06-13 22:28:01 +02:00 committed by Hiltjo Posthuma
parent a5cb7d53ce
commit 5491251610
1 changed files with 51 additions and 3 deletions

View File

@ -16,7 +16,7 @@ static Key keys_en[KEYS] = {
{ 0 }, /* New row */ { 0 }, /* New row */
{ "", 0, XK_Tab, 0.5 }, { "", 0, XK_Tab, 0.75 },
{ 0, 0, XK_q, 1 }, { 0, 0, XK_q, 1 },
{ 0, 0, XK_w, 1 }, { 0, 0, XK_w, 1 },
{ 0, 0, XK_e, 1 }, { 0, 0, XK_e, 1 },
@ -27,7 +27,7 @@ static Key keys_en[KEYS] = {
{ 0, 0, XK_i, 1 }, { 0, 0, XK_i, 1 },
{ 0, 0, XK_o, 1 }, { 0, 0, XK_o, 1 },
{ 0, 0, XK_p, 1 }, { 0, 0, XK_p, 1 },
{ "/", "?", XK_slash, 1 }, { "/", "?", XK_slash, .75 },
{ 0 }, /* New row */ { 0 }, /* New row */
@ -67,6 +67,52 @@ static Key keys_en[KEYS] = {
{ "↲ Enter", 0, XK_Return, 2 }, { "↲ 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 #define OVERLAYS 197
static Key overlay[OVERLAYS] = { static Key overlay[OVERLAYS] = {
{ 0, 0, XK_a }, //Overlay for a { 0, 0, XK_a }, //Overlay for a
@ -550,12 +596,13 @@ static Key keys_dialer[KEYS] = {
{ 0 }, /* Last item (double 0) */ { 0 }, /* Last item (double 0) */
}; };
#define LAYERS 5 #define LAYERS 6
static char* layer_names[LAYERS] = { static char* layer_names[LAYERS] = {
"en", "en",
"symbols", "symbols",
"navigation", "navigation",
"dialer", "dialer",
"minimal",
"ru", "ru",
}; };
@ -564,6 +611,7 @@ static Key* available_layers[LAYERS] = {
keys_symbols, keys_symbols,
keys_navigation, keys_navigation,
keys_dialer, keys_dialer,
keys_minimal,
keys_ru keys_ru
}; };