summaryrefslogtreecommitdiffstats
path: root/keyboards/redox/keymaps
diff options
context:
space:
mode:
authoryushyin <yuyushyin@gmail.com>2019-05-05 18:11:04 +0200
committeryushyin <yuyushyin@gmail.com>2019-05-05 18:11:04 +0200
commit4be3726267bca9e150cb4d6c84a746bbd64f1a8c (patch)
tree1bb19f6e8a82489f8c7d34bf40d6747641c26705 /keyboards/redox/keymaps
parent3a7c65b42442971bcb3369cc9dc3615b6aad1383 (diff)
downloadqmk_firmware-4be3726267bca9e150cb4d6c84a746bbd64f1a8c.tar.gz
qmk_firmware-4be3726267bca9e150cb4d6c84a746bbd64f1a8c.tar.xz
[Keymap] Add yushyin's redox keymapredox-keymap-yushyin
Diffstat (limited to 'keyboards/redox/keymaps')
-rw-r--r--keyboards/redox/keymaps/yushyin/config.h14
-rw-r--r--keyboards/redox/keymaps/yushyin/keymap.c93
-rw-r--r--keyboards/redox/keymaps/yushyin/readme.md1
-rw-r--r--keyboards/redox/keymaps/yushyin/rules.mk0
4 files changed, 108 insertions, 0 deletions
diff --git a/keyboards/redox/keymaps/yushyin/config.h b/keyboards/redox/keymaps/yushyin/config.h
new file mode 100644
index 000000000..0564f8715
--- /dev/null
+++ b/keyboards/redox/keymaps/yushyin/config.h
@@ -0,0 +1,14 @@
+#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
+
+#undef RGBLED_NUM
+#define RGBLED_NUM 0
+#define TAPPING_TOGGLE 2
diff --git a/keyboards/redox/keymaps/yushyin/keymap.c b/keyboards/redox/keymaps/yushyin/keymap.c
new file mode 100644
index 000000000..d2b6b6990
--- /dev/null
+++ b/keyboards/redox/keymaps/yushyin/keymap.c
@@ -0,0 +1,93 @@
+#include QMK_KEYBOARD_H
+
+extern keymap_config_t keymap_config;
+
+// Each layer gets a name for readability, which is then used in the keymap matrix below.
+// The underscores don't mean anything - you can have a layer called STUFF or any other name.
+// Layer names don't all need to be of the same length, obviously, and you can also skip them
+// entirely and just use numbers.
+#define _QWERTY 0
+#define _GAME 1
+#define _SYMB 2
+#define _NAV 3
+
+enum custom_keycodes {
+ QWERTY = SAFE_RANGE,
+ GAME,
+ SYMB,
+ NAV,
+};
+
+// Shortcut to make keymap more readable
+#define KC_SYEC LT(_SYMB, KC_ESC)
+#define KC_SYQU LT(_SYMB, KC_QUOT)
+
+#define KC_NAUP LT(_NAV, KC_PGUP)
+#define KC_NAEN LT(_NAV, KC_END)
+
+#define KC_ALAP RALT_T(KC_APP)
+#define KC_ALAG LALT_T(KC_SLCK)
+
+#define KC_NATG TT(_NAV)
+
+#define TO_LY1 DF(_QWERTY)
+#define TO_LY2 DF(_GAME)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ [_QWERTY] = LAYOUT(
+ //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
+ KC_GESC ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 , KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,KC_BSPC ,
+ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ KC_TAB ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,KC_INS , KC_DEL ,KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,KC_BSLS ,
+ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ KC_SYEC ,KC_A ,KC_S ,KC_D ,KC_F ,KC_G ,KC_NATG , KC_NATG ,KC_H ,KC_J ,KC_K ,KC_L ,KC_SCLN ,KC_SYQU ,
+ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B ,KC_NAUP ,KC_PGDN , KC_HOME ,KC_NAEN ,KC_N ,KC_M ,KC_COMM ,KC_DOT ,KC_SLSH ,KC_RSFT ,
+ //├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
+ KC_LCTL ,KC_RALT ,KC_HYPR ,KC_LALT , KC_LGUI , KC_TAB ,KC_BSPC , KC_ENT ,KC_SPC , KC_RGUI , KC_ALAP ,KC_MEH ,KC_ALAG ,KC_RCTL
+ //└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
+ ),
+
+ [_GAME] = LAYOUT(
+ //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
+ KC_GESC ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 , KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,KC_BSPC ,
+ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ KC_TAB ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,KC_INS , KC_DEL ,KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,KC_BSLS ,
+ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ KC_SYEC ,KC_A ,KC_S ,KC_D ,KC_F ,KC_G ,KC_NATG , KC_NATG ,KC_H ,KC_J ,KC_K ,KC_L ,KC_SCLN ,KC_SYQU ,
+ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B ,KC_NAUP ,KC_PGDN , KC_HOME ,KC_NAEN ,KC_N ,KC_M ,KC_COMM ,KC_DOT ,KC_SLSH ,KC_RSFT ,
+ //├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
+ KC_LCTL ,KC_RALT ,KC_HYPR ,KC_LALT , KC_SPC , KC_TAB ,KC_BSPC , KC_ENT ,KC_SPC , KC_RGUI , KC_ALAP ,KC_MEH ,KC_ALAG ,KC_RCTL
+ //└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
+ ),
+
+ [_SYMB] = LAYOUT(
+ //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
+ _______ ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F8 ,KC_F9 ,KC_F10 ,KC_F11 ,KC_F12 ,_______ ,
+ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ _______ ,KC_AT ,KC_UNDS ,KC_LBRC ,KC_RBRC ,KC_CIRC ,KC_F6 , KC_F7 ,KC_EXLM ,KC_LABK ,KC_RABK ,KC_EQL ,KC_AMPR ,_______ ,
+ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ _______ ,KC_BSLS ,KC_SLSH ,KC_LCBR ,KC_RCBR ,KC_ASTR ,_______ , _______ ,KC_QUES ,KC_LPRN ,KC_RPRN ,KC_MINS ,KC_COLN ,_______ ,
+ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ _______ ,KC_HASH ,KC_DLR ,KC_PIPE ,KC_TILD ,KC_GRV ,_______ ,_______ , _______ ,_______ ,KC_PLUS ,KC_PERC ,KC_DQUO ,KC_QUOT ,KC_SCLN ,_______ ,
+ //├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
+ _______ ,_______ ,_______ ,_______ , _______ , _______ ,_______ , _______ ,_______ , _______ , _______ ,_______ ,_______ ,_______
+ //└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
+ ),
+
+ [_NAV] = LAYOUT(
+ //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
+ _______ ,TO_LY1 ,TO_LY2 ,_______ ,_______ ,_______ , _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
+ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ XXXXXXX ,KC_NLCK ,KC_KP_7 ,KC_KP_8 ,KC_KP_9 ,XXXXXXX ,_______ , _______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
+ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ XXXXXXX ,XXXXXXX ,KC_KP_4 ,KC_KP_5 ,KC_KP_6 ,XXXXXXX ,_______ , _______ ,KC_LEFT ,KC_DOWN ,KC_UP ,KC_RIGHT,XXXXXXX ,XXXXXXX ,
+ //├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
+ XXXXXXX ,XXXXXXX ,KC_KP_1 ,KC_KP_2 ,KC_KP_3 ,XXXXXXX ,_______ ,_______ , _______ ,_______ ,KC_MUTE ,KC_MPLY ,KC_VOLD ,KC_VOLU ,XXXXXXX ,XXXXXXX ,
+ //├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
+ XXXXXXX ,XXXXXXX ,KC_KP_0 ,XXXXXXX , _______ , _______ ,_______ , _______ ,_______ , _______ , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX
+ //└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
+ ),
+};
diff --git a/keyboards/redox/keymaps/yushyin/readme.md b/keyboards/redox/keymaps/yushyin/readme.md
new file mode 100644
index 000000000..e90cdc8f9
--- /dev/null
+++ b/keyboards/redox/keymaps/yushyin/readme.md
@@ -0,0 +1 @@
+# yushyin's keymap for Redox
diff --git a/keyboards/redox/keymaps/yushyin/rules.mk b/keyboards/redox/keymaps/yushyin/rules.mk
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/keyboards/redox/keymaps/yushyin/rules.mk