wvkbd

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

commit 749268c48111032e54516acd9bb5023a3e2d8256
parent e5648bcfaceacd428e5b72fdacbc33083d93d939
Author: rbckman <rob@tarina.org>
Date:   Tue, 11 Jan 2022 14:28:21 +0200

finnish keyboard with åäö, removed the compose key, added caps to full keyb, use same full keyb layout for landscape mode

Diffstat:
Mconfig.def.h | 6+++---
Mlayout.mobintl.h | 13++++++++-----
2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -23,14 +23,14 @@ struct clr_scheme scheme1 = { /* layers is an ordered list of layouts, used to cycle through */ static enum layout_id layers[] = { Full, // First layout is the default layout on startup - Special, Emoji, Simple, SimpleGrid, Nav, Dialer, Cyrillic, Arabic, Georgian, + Special, Emoji, NumLayouts // signals the last item, may not be omitted }; /* layers is an ordered list of layouts, used to cycle through */ static enum layout_id landscape_layers[] = { - Landscape, // First layout is the default layout on startup - Special, Emoji, Nav, + Full, // First layout is the default layout on startup + Special, Emoji, NumLayouts // signals the last item, may not be omitted }; diff --git a/layout.mobintl.h b/layout.mobintl.h @@ -4,7 +4,7 @@ #define KBD_PIXEL_HEIGHT 240 /* how tall the keyboard should be by default (can be overriden) */ -#define KBD_PIXEL_LANDSCAPE_HEIGHT 120 +#define KBD_PIXEL_LANDSCAPE_HEIGHT 180 /* if your layout leaves an empty margin, increase this to fix it */ #define KBD_PIXEL_OVERSCAN_WIDTH 5 @@ -189,7 +189,7 @@ static struct key keys_full[] = { {"=", "+", 1.0, Code, KEY_EQUAL}, {"", "", 0.0, EndRow}, - {"", "", 0.5, Pad}, + {"Caps", "Caps", 1.0, Mod, CapsLock, .scheme = 1}, {"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]}, @@ -200,9 +200,10 @@ static struct key keys_full[] = { {"i", "I", 1.0, Code, KEY_I, &layouts[ComposeI]}, {"o", "O", 1.0, Code, KEY_O, &layouts[ComposeO]}, {"p", "P", 1.0, Code, KEY_P, &layouts[ComposeP]}, + {"å", "Å", 1.0, Copy, 0x00E5, 0, 0x00C5}, {"", "", 0.0, EndRow}, - {"Cmp", "Cmp", 1.0, Compose, .scheme = 1}, + {"", "", 0.5, Pad}, {"a", "A", 1.0, Code, KEY_A, &layouts[ComposeA]}, {"s", "S", 1.0, Code, KEY_S, &layouts[ComposeS]}, {"d", "D", 1.0, Code, KEY_D, &layouts[ComposeD]}, @@ -212,10 +213,12 @@ static struct key keys_full[] = { {"j", "J", 1.0, Code, KEY_J, &layouts[ComposeJ]}, {"k", "K", 1.0, Code, KEY_K, &layouts[ComposeK]}, {"l", "L", 1.0, Code, KEY_L, &layouts[ComposeL]}, - {"", "", 0.5, Pad}, + {"ö", "Ö", 1.0, Copy, 0x00F6, 0, 0x00D6}, + {"ä", "Ä", 1.0, Copy, 0x00E4, 0, 0x00C4}, + {"", "", 0.0, EndRow}, - {"⇧", "⇧", 1.5, Mod, Shift, .scheme = 1}, + {"⇧", "⇧", 1.0, Mod, Shift, .scheme = 1}, {"z", "Z", 1.0, Code, KEY_Z, &layouts[ComposeZ]}, {"x", "X", 1.0, Code, KEY_X, &layouts[ComposeX]}, {"c", "C", 1.0, Code, KEY_C, &layouts[ComposeC]},