summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/dactyl_manuform/4x5/keymaps/ibnuda
diff options
context:
space:
mode:
authorIbnu Daru Aji <ibnuda@users.noreply.github.com>2020-03-04 04:46:11 +0700
committerGitHub <noreply@github.com>2020-03-03 13:46:11 -0800
commit910d603c657e4ad81a4e7a4c86a74e2e79aa1eaa (patch)
tree0f6261380999d09444ed5c4313e336ef9f534a58 /keyboards/handwired/dactyl_manuform/4x5/keymaps/ibnuda
parentad96e995afc6a8132a054ccab2b08e3501719159 (diff)
[Keymap] new userspace for ibnuda (#8221)
* to ease the maintenance for some boards ibnuda has. * followed ridingqwerty's suggestion on 8821. * folloing drashna's suggestion on qmk's 8221. * following drashn's suggestion on qmk's 8211
Diffstat (limited to 'keyboards/handwired/dactyl_manuform/4x5/keymaps/ibnuda')
-rw-r--r--keyboards/handwired/dactyl_manuform/4x5/keymaps/ibnuda/config.h32
-rw-r--r--keyboards/handwired/dactyl_manuform/4x5/keymaps/ibnuda/keymap.c61
2 files changed, 93 insertions, 0 deletions
diff --git a/keyboards/handwired/dactyl_manuform/4x5/keymaps/ibnuda/config.h b/keyboards/handwired/dactyl_manuform/4x5/keymaps/ibnuda/config.h
new file mode 100644
index 0000000000..07a1323db2
--- /dev/null
+++ b/keyboards/handwired/dactyl_manuform/4x5/keymaps/ibnuda/config.h
@@ -0,0 +1,32 @@
+/*
+This is the c configuration file for the keymap
+
+Copyright 2012 Jun Wako <wakojun@gmail.com>
+Copyright 2015 Jack Humbert
+
+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 <http://www.gnu.org/licenses/>.
+*/
+
+#pragma once
+
+/* Use I2C or Serial, not both */
+
+#define USE_SERIAL
+// #define USE_I2C
+
+/* Select hand configuration */
+
+#define MASTER_LEFT
+// #define MASTER_RIGHT
+// #define EE_HANDS
diff --git a/keyboards/handwired/dactyl_manuform/4x5/keymaps/ibnuda/keymap.c b/keyboards/handwired/dactyl_manuform/4x5/keymaps/ibnuda/keymap.c
new file mode 100644
index 0000000000..58a8c63aaf
--- /dev/null
+++ b/keyboards/handwired/dactyl_manuform/4x5/keymaps/ibnuda/keymap.c
@@ -0,0 +1,61 @@
+#include QMK_KEYBOARD_H
+
+#include "ibnuda.h"
+
+#define TAB KC_TAB
+#define GUI KC_LGUI
+#define MIN KC_MINS
+#define SLS KC_SLSH
+#define CTL KC_LCTL
+#define DEL KC_DELT
+#define QUE KC_QUES
+#define ___ KC_NO
+
+// clang-format off
+#define LAYOUT_dm_base( \
+ K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
+ K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
+ K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, \
+ KTA, KTB, KTC, KTD \
+ ) \
+ LAYOUT_wrapper( \
+ K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
+ K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
+ K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, \
+ TAB, GUI, MIN, SLS, \
+ KTA, KTB, KTC, KTD, \
+ CTL, DEL, QUE, CTL, \
+ ___, ___, ___, ___ \
+ )
+
+#define LAYOUT_dm_base_wrapper(...) LAYOUT_dm_base(__VA_ARGS__)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+[_BASE] = LAYOUT_dm_base_wrapper(
+ ________________DVORAK_L1_______________, ________________DVORAK_R1_______________,
+ ________________DVORAK_L2_______________, ________________DVORAK_R2_______________,
+ ________________DVORAK_L3_______________, ________________DVORAK_R3_______________,
+ LW_BSPC,SFT_ESC, ALT_ENT,RS_SPC
+),
+
+[_RAISE] = LAYOUT_dm_base_wrapper(
+ ________________RAISE_L1________________, ________________RAISE_R1________________,
+ ________________RAISE_L2________________, ________________RAISE_R2________________,
+ ________________RAISE_L3________________, ________________RAISE_R3________________,
+ ADDDD, _______, _______,_______
+),
+[_LOWER] = LAYOUT_dm_base_wrapper(
+ ________________LOWER_L1________________, ________________LOWER_R1________________,
+ ________________LOWER_L2________________, ________________LOWER_R2________________,
+ ________________LOWER_L3________________, ________________LOWER_R3________________,
+ _______,_______, _______,ADDDD
+),
+[_ADJUST] = LAYOUT_dm_base_wrapper(
+ ________________ADJUST_L1_______________, ________________ADJUST_R1_______________,
+ ________________ADJUST_L2_______________, ________________ADJUST_R2_______________,
+ ________________ADJUST_L3_______________, ________________ADJUST_R3_______________,
+ _______,_______, _______,_______
+),
+};
+// clang-format on
+