commit 378a1c8b308ebe09af1ad87ea00bf142313c6fdd
Author: Maarten van Gompel <[email protected]>
AuthorDate: Sun Jul 11 17:53:52 2021 +0200
Commit: Hiltjo Posthuma <[email protected]>
CommitDate: Mon Jul 12 12:34:10 2021 +0200
made the Q key double as a trigger for the emoji overlay in the default
mobile-intl layout
This makes the emoji overlay accessible without sacrificing an extra key.
There are (afaik) no languages with diacritics on the Q anyway and it's
the first letter key.
A small emoji will show as 2nd label on the keycap as a hint, the caveat
being that the hint applies to a long press rather than a shift-press as
with most 2nd labels, but better than no hint at all.
diff --git a/README.md b/README.md
index 9d18797..b0a246f 100644
--- a/README.md
+++ b/README.md
@@ -69,10 +69,11 @@ through the ``SVKBD_LAYERS`` environment variable. They
both take a comma separ
your ``layout.*.h``). Use the ``âº`` button in the bottom-left to cycle
through all the layers in the exact order they
were specified.
-Some layouts come with overlays that will show when certain keys are hold
pressed for a longer time. For
-example, a long press on the ``a`` key will enable an overview showing all
kinds of diacritic combinations for ``a``. In
-the ``mobile-intl`` layout, a long press on a punctuation key will show an
overlay with all further punctuation options
-(the same for all punctuation keys).
+Some layouts come with overlays that will show when certain keys are hold
pressed for a longer time. For example, a long
+press on the ``a`` key will enable an overview showing all kinds of diacritic
combinations for ``a``. In the
+``mobile-intl`` layout, a long press on a punctuation key will show an overlay
with all further punctuation options (the
+same for all punctuation keys). Moreover, a long press on the ``q`` key
doubles as a trigger for the emoji overlay in
+this layout.
Overlay functionality interferes with the ability to hold a key and have it
outputted repeatedly. You can disable
overlay functionality with the ``-O`` flag or by setting the environment
variable ``SVKBD_ENABLEOVERLAYS=0``. There is
diff --git a/layout.mobile-intl.h b/layout.mobile-intl.h
index 97b914e..dcc7c6d 100644
--- a/layout.mobile-intl.h
+++ b/layout.mobile-intl.h
@@ -17,7 +17,7 @@ static Key keys_en[KEYS] = {
{ 0 }, /* New row */
{ "â¹", 0, XK_Tab, 0.75 },
- { 0, 0, XK_q, 1 },
+ { 0, "ð", XK_q, 1 },
{ 0, 0, XK_w, 1 },
{ 0, 0, XK_e, 1 },
{ 0, 0, XK_r, 1 },
@@ -68,7 +68,7 @@ static Key keys_en[KEYS] = {
};
static Key keys_minimal[KEYS] = {
- { 0, 0, XK_q, 1 },
+ { 0, "ð", XK_q, 1 },
{ 0, 0, XK_w, 1 },
{ 0, 0, XK_e, 1 },
{ 0, 0, XK_r, 1 },
@@ -113,7 +113,7 @@ static Key keys_minimal[KEYS] = {
{ "â² Enter", 0, XK_Return, 2 },
};
-#define OVERLAYS 197
+#define OVERLAYS 226
static Key overlay[OVERLAYS] = {
{ 0, 0, XK_a }, //Overlay for a
{ "Ã ", 0, XK_agrave },
@@ -283,6 +283,35 @@ static Key overlay[OVERLAYS] = {
{ "ð³", 0, 0x101f633 },
{ "ð´", 0, 0x101f634 },
{ 0, 0, XK_Cancel }, /* XK_Cancel signifies overlay boundary */
+ { "q", 0, XK_q }, //New overlay -> emoji overlay on Q key (for minimal
layer)
+ { "ð", 0, 0x101f600 },
+ { "ð", 0, 0x101f601 },
+ { "ð", 0, 0x101f602 },
+ { "ð", 0, 0x101f603 },
+ { "ð", 0, 0x101f604 },
+ { "ð
", 0, 0x101f605 },
+ { "ð", 0, 0x101f606 },
+ { "ð", 0, 0x101f607 },
+ { "ð", 0, 0x101f608 },
+ { "ð", 0, 0x101f609 },
+ { "ð", 0, 0x101f60a },
+ { "ð", 0, 0x101f60b },
+ { "ð", 0, 0x101f60c },
+ { "ð", 0, 0x101f60d },
+ { "ð", 0, 0x101f60e },
+ { "ð", 0, 0x101f60f },
+ { "ð", 0, 0x101f610 },
+ { "ð", 0, 0x101f612 },
+ { "ð", 0, 0x101f613 },
+ { "ð", 0, 0x101f61b },
+ { "ð®", 0, 0x101f62e },
+ { "ð", 0, 0x101f61f },
+ { "ð", 0, 0x101f620 },
+ { "ð¢", 0, 0x101f622 },
+ { "ð", 0, 0x101f62d },
+ { "ð³", 0, 0x101f633 },
+ { "ð´", 0, 0x101f634 },
+ { 0, 0, XK_Cancel }, /* XK_Cancel signifies overlay boundary */
{ "/?", 0, XK_slash }, //New overlay - punctuation overlay
{ "1", "!", XK_1, 1 },
{ "2", "@", XK_2, 1 },
diff --git a/layout.mobile-simple.h b/layout.mobile-simple.h
index 6b23ff3..c4a85a8 100644
--- a/layout.mobile-simple.h
+++ b/layout.mobile-simple.h
@@ -351,7 +351,7 @@ static Key overlay[OVERLAYS] = {
{ "ð", 0, 0x101f612 },
{ "ð", 0, 0x101f613 },
{ "ð", 0, 0x101f61b },
- { "ð®", 0, 0x101f62e, 2 }, // skip shift
+ { "ð®", 0, 0x101f62e },
{ "ð", 0, 0x101f61f },
{ "ð", 0, 0x101f620 },
{ "ð¢", 0, 0x101f622 },