diff --git a/.github/workflows/outboards/shields/totem b/.github/workflows/outboards/shields/totem new file mode 100644 index 0000000..f48e550 --- /dev/null +++ b/.github/workflows/outboards/shields/totem @@ -0,0 +1,7 @@ +# Copyright 2022 Manna Harbour +# https://github.com/manna-harbour/miryoku + +outboard_repository=GEIGEIGEIST/zmk-config-totem +outboard_ref=master +outboard_from=config/boards/shields/totem +outboard_to=boards/shields/totem diff --git a/.github/workflows/test-all-xiao-shields.yml b/.github/workflows/test-all-xiao-shields.yml index df09e42..fdd228a 100644 --- a/.github/workflows/test-all-xiao-shields.yml +++ b/.github/workflows/test-all-xiao-shields.yml @@ -13,6 +13,7 @@ jobs: shield: '[ "clog_v2_left","clog_v2_right", "hummingbird", + "totem_left","totem_right", "xmk", "zaphod_lite" ]' diff --git a/config/totem.keymap b/config/totem.keymap new file mode 100644 index 0000000..944c619 --- /dev/null +++ b/config/totem.keymap @@ -0,0 +1,6 @@ +// Copyright 2022 Manna Harbour +// https://github.com/manna-harbour/miryoku + +#include "../miryoku/custom_config.h" +#include "../miryoku/mapping/38/totem.h" +#include "../miryoku/miryoku.dtsi" diff --git a/miryoku/mapping/38/totem.h b/miryoku/mapping/38/totem.h new file mode 100644 index 0000000..7ce6ec6 --- /dev/null +++ b/miryoku/mapping/38/totem.h @@ -0,0 +1,24 @@ +// Copyright 2022 Manna Harbour +// https://github.com/manna-harbour/miryoku + +#if !defined (MIRYOKU_LAYOUTMAPPING_TOTEM) + +#define XXX &none + +#define MIRYOKU_LAYOUTMAPPING_TOTEM( \ + K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \ + K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \ + K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \ + N30, N31, K32, K33, K34, K35, K36, K37, N38, N39 \ +) \ + K00 K01 K02 K03 K04 K05 K06 K07 K08 K09 \ +K00 K10 K11 K12 K13 K14 K15 K16 K17 K18 K19 K09 \ + K20 K21 K22 K23 K24 K25 K26 K27 K28 K29 \ + K32 K33 K34 K35 K36 K37 + +#define MIRYOKU_KLUDGE_THUMBCOMBOS_LEFT 33 34 +#define MIRYOKU_KLUDGE_THUMBCOMBOS_RIGHT 35 36 + +#endif + +#define MIRYOKU_MAPPING MIRYOKU_LAYOUTMAPPING_TOTEM diff --git a/readme.org b/readme.org index 89a9f63..a17ef4d 100644 --- a/readme.org +++ b/readme.org @@ -309,6 +309,11 @@ Notes or diagrams are provided below where the selection of keys is not obvious For use with PIM447 installed in the right secondary thumb key position. The right tertiary thumb key is replaced with the secondary and [[#thumb-combos][thumb combos]] are enabled. Note that the right secondary thumb key is in the opposite position from usual, relative to the primary. +**** 38/totem + +The outer pinkie column key can be used as an alternative to the top row pinkie column key. + + **** 41/reviung41 The thumbs keys, from left to right, are as follows: left secondary, left primary, right secondary, right primary, right tertiary. [[#thumb-combos][Thumb combos]] are enabled for the left thumbs. The left thumb keys are also duplicated on the left outer pinkie column, from top to bottom, as follows: primary, tertiary, secondary. Note that the left secondary thumb key is in the opposite position from usual, relative to the primary. For ~MIRYOKU_LAYERS=FLIP~, substitute left and right above.