From df1690ad257e7b0d1bf9450258f7baebfee7be9a Mon Sep 17 00:00:00 2001
From: Manna Harbour <51143715+manna-harbour@users.noreply.github.com>
Date: Wed, 29 Nov 2023 21:54:07 +1100
Subject: [PATCH] Add salicylic_acid3/naked48
- https://github.com/manna-harbour/miryoku/discussions/264
---
.../keymaps/manna-harbour_miryoku/config.h | 36 +++++++++++++++++++
.../keymaps/manna-harbour_miryoku/keymap.c | 4 +++
users/manna-harbour_miryoku/readme.org | 12 +++++++
3 files changed, 52 insertions(+)
create mode 100644 keyboards/salicylic_acid3/naked48/keymaps/manna-harbour_miryoku/config.h
create mode 100644 keyboards/salicylic_acid3/naked48/keymaps/manna-harbour_miryoku/keymap.c
diff --git a/keyboards/salicylic_acid3/naked48/keymaps/manna-harbour_miryoku/config.h b/keyboards/salicylic_acid3/naked48/keymaps/manna-harbour_miryoku/config.h
new file mode 100644
index 0000000000..04dc53c356
--- /dev/null
+++ b/keyboards/salicylic_acid3/naked48/keymaps/manna-harbour_miryoku/config.h
@@ -0,0 +1,36 @@
+// Copyright 2023 Manna Harbour
+// https://github.com/manna-harbour/miryoku
+
+// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see .
+
+#pragma once
+
+#define XXX KC_NO
+
+#if defined MIRYOKU_MAPPING_EXTENDED_THUMBS
+#define LAYOUT_miryoku( \
+ 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 \
+) \
+LAYOUT( \
+XXX, K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, XXX, \
+XXX, K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, XXX, \
+XXX, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, XXX, \
+ XXX, XXX, XXX, K32, K33, K34, K35, K36, K37, XXX, XXX, XXX \
+)
+#else
+#define LAYOUT_miryoku( \
+ 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 \
+) \
+LAYOUT( \
+XXX, K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, XXX, \
+XXX, K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, XXX, \
+XXX, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, XXX, \
+ XXX, XXX, K32, K33, K34, XXX, XXX, K35, K36, K37, XXX, XXX \
+)
+#endif
diff --git a/keyboards/salicylic_acid3/naked48/keymaps/manna-harbour_miryoku/keymap.c b/keyboards/salicylic_acid3/naked48/keymaps/manna-harbour_miryoku/keymap.c
new file mode 100644
index 0000000000..dbab7f9820
--- /dev/null
+++ b/keyboards/salicylic_acid3/naked48/keymaps/manna-harbour_miryoku/keymap.c
@@ -0,0 +1,4 @@
+// Copyright 2019 Manna Harbour
+// https://github.com/manna-harbour/miryoku
+
+// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see .
diff --git a/users/manna-harbour_miryoku/readme.org b/users/manna-harbour_miryoku/readme.org
index 644260b9e6..d85bbcf99a 100644
--- a/users/manna-harbour_miryoku/readme.org
+++ b/users/manna-harbour_miryoku/readme.org
@@ -691,6 +691,18 @@ make redox_w:manna-harbour_miryoku:flash
#+END_SRC
+**** salicylic_acid3/naked48
+
+An alternative mapping with extended thumb position is also provided. To select this mapping, append ~MIRYOKU_MAPPING=EXTENDED_THUMBS~ to the ~make~ command line when building.
+
+Example build command lines:
+
+#+BEGIN_SRC sh :tangle no
+make salicylic_acid3/naked48:manna-harbour_miryoku:flash # default
+make salicylic_acid3/naked48:manna-harbour_miryoku:flash MIRYOKU_MAPPING=EXTENDED_THUMBS # extended thumbs
+#+END_SRC
+
+
**** satt/vision
To build for this keyboard,