From 3ca963f679e25c163a9db236924abd1ca3345c16 Mon Sep 17 00:00:00 2001 From: Michael van Eerd Date: Sat, 10 Apr 2021 15:31:31 +0200 Subject: [PATCH 1/8] Add iBus unicode emoji input macro --- config/lily58.keymap | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/config/lily58.keymap b/config/lily58.keymap index e9db3a3..c45c614 100644 --- a/config/lily58.keymap +++ b/config/lily58.keymap @@ -25,6 +25,13 @@ flavor = "tap-preferred"; bindings = <&kp>, <&kp>; }; + + poop: poop { + compatible = "zmk,behavior-macro"; + label = "IBUS_POO"; + #binding-cells = <0>; + bindings = <&kp LC(LS(U))>, <&kp N1>, <&kp F>, <&kp N4>, <&kp A>, <&kp 9>; + }; }; combos { @@ -60,7 +67,7 @@ &kp TILDE &kp EXCL &kp AT &kp HASH &kp DOLLAR &kp PRCNT &trans &kp LPAR &kp RPAR &kp LT &kp GT &kp PIPE &kp GRAVE &kp CARET &kp AMPERSAND &kp ASTERISK &kp LPAR &kp RPAR &trans &kp LBRC &kp RBRC &kp LBKT &kp RBKT &kp TILDE &kp TILDE &ext_power EP_ON &ext_power EP_OFF &ext_power EP_TOG &trans &trans &trans &trans &trans &kp MINUS &kp KP_PLUS &kp LBRC &kp RBRC &kp PIPE - &trans &trans &trans &trans &kp RG(D) &trans &tog 3 &trans + &trans &trans &trans &trans &kp RG(D) &poop &tog 3 &trans >; }; From 60e949000a744b4cea9a9d362ea26a7754725704 Mon Sep 17 00:00:00 2001 From: Michael van Eerd Date: Sat, 10 Apr 2021 15:31:58 +0200 Subject: [PATCH 2/8] . --- config/lily58.keymap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/lily58.keymap b/config/lily58.keymap index c45c614..8fc4dff 100644 --- a/config/lily58.keymap +++ b/config/lily58.keymap @@ -30,7 +30,7 @@ compatible = "zmk,behavior-macro"; label = "IBUS_POO"; #binding-cells = <0>; - bindings = <&kp LC(LS(U))>, <&kp N1>, <&kp F>, <&kp N4>, <&kp A>, <&kp 9>; + bindings = <&kp LC(LS(U))>, <&kp N1>, <&kp F>, <&kp N4>, <&kp A>, <&kp N9>; }; }; From 20aa2d85c88572796977e49dc0c0a94083c984df Mon Sep 17 00:00:00 2001 From: Michael van Eerd Date: Sat, 10 Apr 2021 15:53:59 +0200 Subject: [PATCH 3/8] test. --- config/west.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/west.yml b/config/west.yml index fa64c07..49dfbcc 100644 --- a/config/west.yml +++ b/config/west.yml @@ -6,8 +6,8 @@ manifest: url-base: https://github.com/okke-formsma projects: - name: zmk - remote: okke-formsma - revision: macros + remote: zmkfirmware + revision: main import: app/west.yml self: path: config From 641cbb8946120ad67c4d937bbd5b1f9a3200d0ba Mon Sep 17 00:00:00 2001 From: Michael van Eerd Date: Tue, 13 Apr 2021 09:34:01 +0200 Subject: [PATCH 4/8] binding cells? --- config/lily58.keymap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/lily58.keymap b/config/lily58.keymap index 8fc4dff..f67b7f0 100644 --- a/config/lily58.keymap +++ b/config/lily58.keymap @@ -29,8 +29,8 @@ poop: poop { compatible = "zmk,behavior-macro"; label = "IBUS_POO"; - #binding-cells = <0>; - bindings = <&kp LC(LS(U))>, <&kp N1>, <&kp F>, <&kp N4>, <&kp A>, <&kp N9>; + #binding-cells = <6>; + bindings = <&kp LC(LS(U))>, <&kp N1>, <&kp F>, <&kp N4>, <&kp A>, <&kp N9>, <&kp SPACE>; }; }; From df34a6455821371fb989e114a8c2e81689bb8185 Mon Sep 17 00:00:00 2001 From: Michael van Eerd Date: Tue, 13 Apr 2021 09:35:25 +0200 Subject: [PATCH 5/8] . --- config/lily58.keymap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/lily58.keymap b/config/lily58.keymap index f67b7f0..3117705 100644 --- a/config/lily58.keymap +++ b/config/lily58.keymap @@ -29,7 +29,7 @@ poop: poop { compatible = "zmk,behavior-macro"; label = "IBUS_POO"; - #binding-cells = <6>; + #binding-cells = <7>; bindings = <&kp LC(LS(U))>, <&kp N1>, <&kp F>, <&kp N4>, <&kp A>, <&kp N9>, <&kp SPACE>; }; }; From bdb12523dad28aed68af15ea5ac20d3ffd64047e Mon Sep 17 00:00:00 2001 From: Michael van Eerd Date: Tue, 13 Apr 2021 09:39:05 +0200 Subject: [PATCH 6/8] fix west.yml to build with OkkeS macro branche --- config/west.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/west.yml b/config/west.yml index 49dfbcc..fa64c07 100644 --- a/config/west.yml +++ b/config/west.yml @@ -6,8 +6,8 @@ manifest: url-base: https://github.com/okke-formsma projects: - name: zmk - remote: zmkfirmware - revision: main + remote: okke-formsma + revision: macros import: app/west.yml self: path: config From d4a26b81d0c8b44c076e3a410db2ed6c6aae4194 Mon Sep 17 00:00:00 2001 From: Michael van Eerd Date: Tue, 13 Apr 2021 09:41:06 +0200 Subject: [PATCH 7/8] f --- config/lily58.keymap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/lily58.keymap b/config/lily58.keymap index 3117705..86f7c51 100644 --- a/config/lily58.keymap +++ b/config/lily58.keymap @@ -29,7 +29,7 @@ poop: poop { compatible = "zmk,behavior-macro"; label = "IBUS_POO"; - #binding-cells = <7>; + #binding-cells = <0>; bindings = <&kp LC(LS(U))>, <&kp N1>, <&kp F>, <&kp N4>, <&kp A>, <&kp N9>, <&kp SPACE>; }; }; From 9888e3819cce8c8f9df3cc94e74a3c9b1526bfa9 Mon Sep 17 00:00:00 2001 From: Michael van Eerd Date: Tue, 13 Apr 2021 09:44:48 +0200 Subject: [PATCH 8/8] comment --- config/lily58.keymap | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/lily58.keymap b/config/lily58.keymap index 86f7c51..34f3960 100644 --- a/config/lily58.keymap +++ b/config/lily58.keymap @@ -25,7 +25,12 @@ flavor = "tap-preferred"; bindings = <&kp>, <&kp>; }; - + + /* + * This inputs a poop emoji using IBus on Linux + * To do this on Windows you'd need WinCompose + * On MacOS you can use Unicode Hex Input + */ poop: poop { compatible = "zmk,behavior-macro"; label = "IBUS_POO";