diff options
Diffstat (limited to 'keyboards/redox/keymaps')
| -rw-r--r-- | keyboards/redox/keymaps/default/config.h | 41 | ||||
| -rw-r--r-- | keyboards/redox/keymaps/default/keymap.c | 117 | ||||
| -rw-r--r-- | keyboards/redox/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/redox/keymaps/default/rules.mk | 5 |
4 files changed, 164 insertions, 0 deletions
diff --git a/keyboards/redox/keymaps/default/config.h b/keyboards/redox/keymaps/default/config.h new file mode 100644 index 000000000..ef1b4d944 --- /dev/null +++ b/keyboards/redox/keymaps/default/config.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2017 Danny Nguyen <danny@hexwire.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef CONFIG_USER_H | ||
| 19 | #define CONFIG_USER_H | ||
| 20 | |||
| 21 | #include "../../config.h" | ||
| 22 | |||
| 23 | /* Use I2C or Serial, not both */ | ||
| 24 | |||
| 25 | // #define USE_SERIAL | ||
| 26 | #define USE_I2C | ||
| 27 | |||
| 28 | /* Select hand configuration */ | ||
| 29 | |||
| 30 | #define MASTER_LEFT | ||
| 31 | // #define MASTER_RIGHT | ||
| 32 | // #define EE_HANDS | ||
| 33 | |||
| 34 | #undef RGBLED_NUM | ||
| 35 | #define RGBLIGHT_ANIMATIONS | ||
| 36 | #define RGBLED_NUM 14 | ||
| 37 | #define RGBLIGHT_HUE_STEP 8 | ||
| 38 | #define RGBLIGHT_SAT_STEP 8 | ||
| 39 | #define RGBLIGHT_VAL_STEP 8 | ||
| 40 | |||
| 41 | #endif | ||
diff --git a/keyboards/redox/keymaps/default/keymap.c b/keyboards/redox/keymaps/default/keymap.c new file mode 100644 index 000000000..d8fd76d02 --- /dev/null +++ b/keyboards/redox/keymaps/default/keymap.c | |||
| @@ -0,0 +1,117 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | extern keymap_config_t keymap_config; | ||
| 4 | extern rgblight_config_t rgblight_config; | ||
| 5 | |||
| 6 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
| 7 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
| 8 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
| 9 | // entirely and just use numbers. | ||
| 10 | #define _QWERTY 0 | ||
| 11 | #define _SYMB 1 | ||
| 12 | #define _NAV 2 | ||
| 13 | #define _ADJUST 3 | ||
| 14 | |||
| 15 | enum custom_keycodes { | ||
| 16 | QWERTY = SAFE_RANGE, | ||
| 17 | SYMB, | ||
| 18 | NAV, | ||
| 19 | ADJUST, | ||
| 20 | }; | ||
| 21 | |||
| 22 | // Fillers to make layering more clear | ||
| 23 | #define KC_ KC_TRNS | ||
| 24 | #define _______ KC_TRNS | ||
| 25 | #define XXXXXXX KC_NO | ||
| 26 | |||
| 27 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 28 | |||
| 29 | /* QWERTY | ||
| 30 | * ,------------------------------------------------. ,------------------------------------------------. | ||
| 31 | * |\-Lyr2| 1 | 2 | 3 | 4 | 5 | Lyr1 | | Lyr1 | 6 | 7 | 8 | 9 | 0 |'-Lyr2| | ||
| 32 | * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------| | ||
| 33 | * | Tab | Q | W | E | R | T | [ | | ] | Y | U | I | O | P | è | | ||
| 34 | * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------| | ||
| 35 | * | Esc | A | S | D | F | G | PgUp | | End | H | J | K | L | ò | à | | ||
| 36 | * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------| | ||
| 37 | * | Shift| Z | X | C | V | B | PgDn | | Home | N | M | , | . | ù |-(Sft)| | ||
| 38 | * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------| | ||
| 39 | * |<(Gui)| + | - |*(Alt)|/(Ctr)|Bcksp | Del | |Enter |Space |ì(AlG)| Left | Down | Up | Right| | ||
| 40 | * `------------------------------------------------' `------------------------------------------------' | ||
| 41 | */ | ||
| 42 | [_QWERTY] = LAYOUT( | ||
| 43 | //,----+----+----+----+----+----+----. ,----+----+----+----+----+----+----. | ||
| 44 | LT(_NAV, KC_GRV) , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 ,MO(_SYMB), MO(_SYMB), KC_6 , KC_7 , KC_8 , KC_9 , KC_0 ,LT(_NAV, KC_MINS), | ||
| 45 | //|----+----+----+----+----+----+----| |----+----+----+----+----+----+----| | ||
| 46 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T ,RALT(KC_LBRC), RALT(KC_RBRC) , KC_Y , KC_U , KC_I , KC_O , KC_P ,KC_LBRC, | ||
| 47 | //|----+----+----+----+----+----+----| |----+----+----+----+----+----+----| | ||
| 48 | KC_ESC , KC_A , KC_S , KC_D , KC_F , KC_G , LT(_ADJUST, KC_PGUP), LT( _ADJUST, KC_END) , KC_H , KC_J , KC_K , KC_L ,KC_SCLN,KC_QUOT, | ||
| 49 | //|----+----+----+----+----+----+----| |----+----+----+----+----+----+----| | ||
| 50 | KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B ,KC_PGDN, KC_HOME , KC_N , KC_M ,KC_COMM,KC_DOT ,KC_BSLASH,RSFT_T(KC_SLSH), | ||
| 51 | //|----+----+----+----+----+----+----| |----+----+----+----+----+----+----| | ||
| 52 | LGUI_T(KC_NONUS_BSLASH),KC_PPLS,KC_PMNS,LALT_T(KC_PAST),LCTL_T(KC_PSLS),KC_BSPC,KC_DEL , KC_ENT , KC_SPC, RALT_T(KC_EQL),KC_LEFT,KC_DOWN, KC_UP ,KC_RGHT | ||
| 53 | //`----+----+----+----+----+----+----' `----+----+----+----+----+----+----' | ||
| 54 | ), | ||
| 55 | |||
| 56 | /* Symbols | ||
| 57 | * ,------------------------------------------------. ,------------------------------------------------. | ||
| 58 | * | | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | | | ||
| 59 | * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------| | ||
| 60 | * | | ! | @ | { | } | | | | | | | 7 | 8 | 9 | | | | ||
| 61 | * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------| | ||
| 62 | * | | # | $ | [ | ] | ~ | | | | | 4 | 5 | 6 | | | | ||
| 63 | * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------| | ||
| 64 | * | | % | ^ | ( | ) | ` | | | | | 1 | 2 | 3 | | | | ||
| 65 | * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------| | ||
| 66 | * | | | | | | | | | | | 0 | 0 | . | | | | ||
| 67 | * `------------------------------------------------' `------------------------------------------------' | ||
| 68 | */ | ||
| 69 | |||
| 70 | [_SYMB] = LAYOUT( | ||
| 71 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, XXXXXXX, | ||
| 72 | _______, KC_EXLM, RALT(KC_SCLN), RALT(KC_LCBR), RALT(KC_RCBR), KC_TILD, _______, _______, XXXXXXX, KC_KP_7, KC_KP_8, KC_KP_9, XXXXXXX, XXXXXXX, | ||
| 73 | _______, RALT(KC_QUOT), KC_DLR , RALT(KC_LBRC), RALT(KC_RBRC), RALT(KC_EQL), _______, _______, XXXXXXX, KC_KP_4, KC_KP_5, KC_KP_6, XXXXXXX, XXXXXXX, | ||
| 74 | _______, KC_PERC, LSFT(KC_EQL) , LSFT(KC_8), LSFT(KC_9), RALT(KC_MINS), _______, _______, XXXXXXX, KC_KP_1, KC_KP_2, KC_KP_3, XXXXXXX, XXXXXXX, | ||
| 75 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_KP_0, KC_KP_0, KC_PDOT, XXXXXXX, XXXXXXX | ||
| 76 | ), | ||
| 77 | |||
| 78 | /* Navigation | ||
| 79 | * ,------------------------------------------------. ,------------------------------------------------. | ||
| 80 | * | | | | | | | | | | | | | | | | | ||
| 81 | * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------| | ||
| 82 | * | | |MOUS_U| |WHEL_U| | | | | | | | | | | | ||
| 83 | * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------| | ||
| 84 | * | |MOUS_L|MOUS_D|MOUS_R|WHEL_D| | | | | LEFT | DOWN | UP |RIGHT | | | | ||
| 85 | * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------| | ||
| 86 | * | | | | | | | | | | | | | | | | | ||
| 87 | * |------+------+------+------+------+------+------| |------+------+------+------+------+------+------| | ||
| 88 | * | | | | |MOUS_1|MOUS_2| | | | | | | | | | | ||
| 89 | * `------------------------------------------------' `------------------------------------------------' | ||
| 90 | */ | ||
| 91 | [_NAV] = LAYOUT( | ||
| 92 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 93 | XXXXXXX, XXXXXXX, KC_MS_U, XXXXXXX, KC_WH_U, XXXXXXX, _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 94 | XXXXXXX, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, XXXXXXX, _______, _______, KC_LEFT, KC_DOWN, KC_UP , KC_RIGHT,XXXXXXX, XXXXXXX, | ||
| 95 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 96 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BTN1, KC_BTN2, _______, _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX | ||
| 97 | ), | ||
| 98 | |||
| 99 | [_ADJUST] = LAYOUT( | ||
| 100 | XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, XXXXXXX, | ||
| 101 | XXXXXXX, RESET , RGB_M_P, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, XXXXXXX, KC_DEL, XXXXXXX, | ||
| 102 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 103 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 104 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX | ||
| 105 | ) | ||
| 106 | |||
| 107 | }; | ||
| 108 | |||
| 109 | #ifdef AUDIO_ENABLE | ||
| 110 | float tone_qwerty[][2] = SONG(QWERTY_SOUND); | ||
| 111 | #endif | ||
| 112 | |||
| 113 | void persistent_default_layer_set(uint16_t default_layer) { | ||
| 114 | eeconfig_update_default_layer(default_layer); | ||
| 115 | default_layer_set(default_layer); | ||
| 116 | } | ||
| 117 | |||
diff --git a/keyboards/redox/keymaps/default/readme.md b/keyboards/redox/keymaps/default/readme.md new file mode 100644 index 000000000..7f086f6e1 --- /dev/null +++ b/keyboards/redox/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for redox \ No newline at end of file | |||
diff --git a/keyboards/redox/keymaps/default/rules.mk b/keyboards/redox/keymaps/default/rules.mk new file mode 100644 index 000000000..1e5761278 --- /dev/null +++ b/keyboards/redox/keymaps/default/rules.mk | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | RGBLIGHT_ENABLE = yes | ||
| 2 | |||
| 3 | ifndef QUANTUM_DIR | ||
| 4 | include ../../../../Makefile | ||
| 5 | endif | ||
