diff options
| author | hidenori <h193345@edu.tut.ac.jp> | 2020-09-12 05:06:38 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-11 13:06:38 -0700 |
| commit | 58d7e9fa0ebe90ab26812970a7473aec91f9f31a (patch) | |
| tree | 2bf2073fe3b54d17f9e02be71267b81bbea21ad9 | |
| parent | 6de4a53c7cb9a0d2dc4cbbe5dcbf19604daca465 (diff) | |
| download | qmk_firmware-58d7e9fa0ebe90ab26812970a7473aec91f9f31a.tar.gz qmk_firmware-58d7e9fa0ebe90ab26812970a7473aec91f9f31a.zip | |
[Keymap] Added ToyoshimaHidenori's keymap for Ergodash mini (#10228)
* Add ToyoshimaHidenori's keymap
* Remove some dead code and characters
* Change the folder name from uppercase to lowercase
* Remove uppercase folder
4 files changed, 239 insertions, 0 deletions
diff --git a/keyboards/ergodash/mini/keymaps/toyoshimahidenori/config.h b/keyboards/ergodash/mini/keymaps/toyoshimahidenori/config.h new file mode 100644 index 000000000..df04873a9 --- /dev/null +++ b/keyboards/ergodash/mini/keymaps/toyoshimahidenori/config.h | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* | ||
| 2 | This is the c configuration file for the keymap | ||
| 3 | |||
| 4 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 5 | Copyright 2015 Jack Humbert | ||
| 6 | |||
| 7 | This program is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 2 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | This program is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #pragma once | ||
| 22 | |||
| 23 | |||
| 24 | /* Use I2C or Serial, not both */ | ||
| 25 | |||
| 26 | #define USE_SERIAL | ||
| 27 | // #define USE_I2C | ||
| 28 | |||
| 29 | /* Select hand configuration */ | ||
| 30 | |||
| 31 | #define MASTER_LEFT | ||
| 32 | // #define MASTER_RIGHT | ||
| 33 | // #define EE_HANDS | ||
diff --git a/keyboards/ergodash/mini/keymaps/toyoshimahidenori/keymap.c b/keyboards/ergodash/mini/keymaps/toyoshimahidenori/keymap.c new file mode 100644 index 000000000..7224af7a0 --- /dev/null +++ b/keyboards/ergodash/mini/keymaps/toyoshimahidenori/keymap.c | |||
| @@ -0,0 +1,141 @@ | |||
| 1 | /* Copyright 2020 Toyoshima Hidenori <t@toyo.dev> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/> | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | enum layers { | ||
| 20 | _QWERTY, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _ADJUST, | ||
| 24 | }; | ||
| 25 | |||
| 26 | enum custom_keycodes { | ||
| 27 | QWERTY = SAFE_RANGE, | ||
| 28 | LOWER, | ||
| 29 | RAISE, | ||
| 30 | ADJUST, | ||
| 31 | }; | ||
| 32 | |||
| 33 | #define EISU LALT(KC_GRV) | ||
| 34 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 35 | |||
| 36 | /* Qwerty | ||
| 37 | * ,----------------------------------------------------------------------------------------------------------------------. | ||
| 38 | * | TAB | Q | W | E | R | T | - | | = | Y | U | I | O | P | \ | | ||
| 39 | * |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------| | ||
| 40 | * | Ctrl | A | S | D | F | G | [ | | ] | H | J | K | L | ; | ' | | ||
| 41 | * |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------| | ||
| 42 | * | Shift| Z | X | C | V | B | GUI | | GUI | N | M | , | . | / | Shift| | ||
| 43 | * |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------| | ||
| 44 | * | Ctrl | ESC | ALt | ESC |||||||| Shift| Raise| Space|||||||| enter| Lower| Bcspc|||||||| Left | Down | Up | Right| | ||
| 45 | * ,----------------------------------------------------------------------------------------------------------------------. | ||
| 46 | */ | ||
| 47 | [_QWERTY] = LAYOUT( | ||
| 48 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_MINS, KC_EQL , KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
| 49 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LBRC, KC_RBRC, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 50 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LGUI, KC_RGUI, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
| 51 | KC_LCTL, KC_ESC, KC_LALT, KC_ESC, KC_LSFT, RAISE, KC_SPC, KC_ENT, LOWER, KC_BSPC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 52 | ), | ||
| 53 | |||
| 54 | /* Lower | ||
| 55 | * ,----------------------------------------------------------------------------------------------------------------------. | ||
| 56 | * | ~ | 1 | 2 | 3 | 4 | 5 | _ | | + | 6 | 7 | 8 | 9 | 0 | | | | ||
| 57 | * |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------| | ||
| 58 | * | Ctrl | ^ | & | * | ( | ) | { | | } | Left | Down | Up | Right| : | " | | ||
| 59 | * |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------| | ||
| 60 | * | Shift| ! | @ | # | $ | % | GUI | | GUI | - | = | < | > | ? | Shift| | ||
| 61 | * |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------| | ||
| 62 | * | Ctrl | ESC | ALt | EISU |||||||| kana | Raise| Space|||||||| Enter| Lower|Delete|||||||| Home |PageDn|PageUp| End | | ||
| 63 | * ,----------------------------------------------------------------------------------------------------------------------. | ||
| 64 | */ | ||
| 65 | [_LOWER] = LAYOUT( | ||
| 66 | KC_TILD, KC_1, KC_2, KC_3, KC_4, KC_5, KC_UNDS, KC_PLUS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_PIPE, | ||
| 67 | KC_LCTL, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_LCBR, KC_RCBR, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_COLN, KC_DQT , | ||
| 68 | KC_LSFT, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_LGUI, KC_RGUI, KC_MINS, KC_EQL, KC_LT, KC_GT, KC_QUES, KC_RSFT, | ||
| 69 | KC_LCTL, KC_ESC, KC_LALT, KC_LANG2, KC_LANG1,RAISE, KC_SPC, KC_ENT, LOWER, KC_DEL, KC_HOME,KC_PGDN, KC_PGUP, KC_END | ||
| 70 | ), | ||
| 71 | |||
| 72 | /* Raise | ||
| 73 | * ,----------------------------------------------------------------------------------------------------------------------. | ||
| 74 | * | ` | 1 | 2 | 3 | 4 | 5 | _ | | + | 6 | 7 | 8 | 9 | 0 | | | | ||
| 75 | * |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------| | ||
| 76 | * | Ctrl | ^ | & | * | ( | ) | { | | } | Left | Down | Up | Right| : | " | | ||
| 77 | * |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------| | ||
| 78 | * | Shift| ! | @ | # | $ | % | GUI | | GUI | _ | + | < | > | ? | Shift| | ||
| 79 | * |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------| | ||
| 80 | * | Ctrl | ESC | ALt | EISU |||||||| kana | Raise| Space|||||||| Enter| Lower|Delete|||||||| Home |PageDn|PageUp| End | | ||
| 81 | * ,----------------------------------------------------------------------------------------------------------------------. | ||
| 82 | */ | ||
| 83 | [_RAISE] = LAYOUT( | ||
| 84 | KC_GRV , KC_1, KC_2, KC_3, KC_4, KC_5, KC_UNDS, KC_PLUS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_PIPE, | ||
| 85 | KC_LCTL, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_LCBR, KC_RCBR, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_COLN, KC_DQT , | ||
| 86 | KC_LSFT, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_LGUI, KC_RGUI, KC_UNDS, KC_PLUS, KC_LT, KC_GT, KC_QUES, KC_RSFT, | ||
| 87 | KC_LCTL, KC_ESC, KC_LALT, KC_LANG2, KC_LANG1,RAISE, KC_SPC, KC_ENT, LOWER, KC_DEL, KC_HOME, KC_PGDN, KC_PGUP, KC_END | ||
| 88 | ), | ||
| 89 | |||
| 90 | /* Adjust | ||
| 91 | * ,----------------------------------------------------------------------------------------------------------------------. | ||
| 92 | * | | Reset|RGB ON| MODE| HUE-| HUE+| | | | SAT-| SAT+| VAL-| VAL+| | | | ||
| 93 | * |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------| | ||
| 94 | * | | | | | | | | | | | | | ||
| 95 | * |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------| | ||
| 96 | * | F1 | F2 | F3 | F4 | F5 | F6 | | | | F7 | F8 | F9 | F10 | F11 | F12 | | ||
| 97 | * |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------| | ||
| 98 | * | | | | |||||||| | | |||||||| | | |||||||| | | | | | ||
| 99 | * ,----------------------------------------------------------------------------------------------------------------------. | ||
| 100 | */ | ||
| 101 | [_ADJUST] = LAYOUT( | ||
| 102 | _______, RESET , RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI,_______, _______, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, _______, _______, | ||
| 103 | _______, _______, BL_TOGG, BL_BRTG, BL_INC , BL_DEC ,_______, _______, _______, _______, _______, _______, _______, _______, | ||
| 104 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6 ,_______, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 105 | _______, _______, _______, _______, _______,_______,_______, _______,_______, _______, _______, _______, _______, _______ | ||
| 106 | ) | ||
| 107 | }; | ||
| 108 | |||
| 109 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 110 | switch (keycode) { | ||
| 111 | case LOWER: | ||
| 112 | if (record->event.pressed) { | ||
| 113 | layer_on(_LOWER); | ||
| 114 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 115 | } else { | ||
| 116 | layer_off(_LOWER); | ||
| 117 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 118 | } | ||
| 119 | return false; | ||
| 120 | break; | ||
| 121 | case RAISE: | ||
| 122 | if (record->event.pressed) { | ||
| 123 | layer_on(_RAISE); | ||
| 124 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 125 | } else { | ||
| 126 | layer_off(_RAISE); | ||
| 127 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 128 | } | ||
| 129 | return false; | ||
| 130 | break; | ||
| 131 | case ADJUST: | ||
| 132 | if (record->event.pressed) { | ||
| 133 | layer_on(_ADJUST); | ||
| 134 | } else { | ||
| 135 | layer_off(_ADJUST); | ||
| 136 | } | ||
| 137 | return false; | ||
| 138 | break; | ||
| 139 | } | ||
| 140 | return true; | ||
| 141 | } | ||
diff --git a/keyboards/ergodash/mini/keymaps/toyoshimahidenori/readme.md b/keyboards/ergodash/mini/keymaps/toyoshimahidenori/readme.md new file mode 100644 index 000000000..ebc13043a --- /dev/null +++ b/keyboards/ergodash/mini/keymaps/toyoshimahidenori/readme.md | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | # ToyoshimaHidenori's keymap for Ergodash mini | ||
| 2 | |||
| 3 | This is the ToyoshimaHidenori's keymap configuration for Ergodash mini. | ||
| 4 | There are four layers, QWERTY(default), LOWER, RAISE and ADJSUT. | ||
| 5 | |||
| 6 | ## Layers | ||
| 7 | |||
| 8 | ### Qwerty | ||
| 9 | |||
| 10 | ``` | ||
| 11 | ,----------------------------------------------------------------------------------------------------------------------. | ||
| 12 | | TAB | Q | W | E | R | T | - | | = | Y | U | I | O | P | \ | | ||
| 13 | |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------| | ||
| 14 | | Ctrl | A | S | D | F | G | [ | | ] | H | J | K | L | ; | ' | | ||
| 15 | |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------| | ||
| 16 | | Shift| Z | X | C | V | B | GUI | | GUI | N | M | , | . | / | Shift| | ||
| 17 | |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------| | ||
| 18 | | Ctrl | ESC | ALt | ESC |||||||| Shift| Raise| Space|||||||| enter| Lower| Bcspc|||||||| Left | Down | Up | Right| | ||
| 19 | ,----------------------------------------------------------------------------------------------------------------------. | ||
| 20 | ``` | ||
| 21 | |||
| 22 | ### Lower | ||
| 23 | |||
| 24 | ``` | ||
| 25 | ,----------------------------------------------------------------------------------------------------------------------. | ||
| 26 | | ~ | 1 | 2 | 3 | 4 | 5 | _ | | + | 6 | 7 | 8 | 9 | 0 | | | | ||
| 27 | |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------| | ||
| 28 | | Ctrl | ^ | & | * | ( | ) | { | | } | Left | Down | Up | Right| : | " | | ||
| 29 | |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------| | ||
| 30 | | Shift| ! | @ | # | $ | % | GUI | | GUI | - | = | < | > | ? | Shift| | ||
| 31 | |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------| | ||
| 32 | | Ctrl | ESC | ALt | EISU |||||||| kana | Raise| Space|||||||| Enter| Lower|Delete|||||||| Home |PageDn|PageUp| End | | ||
| 33 | ,----------------------------------------------------------------------------------------------------------------------. | ||
| 34 | ``` | ||
| 35 | |||
| 36 | ### Raise | ||
| 37 | |||
| 38 | ``` | ||
| 39 | ,----------------------------------------------------------------------------------------------------------------------. | ||
| 40 | | ` | 1 | 2 | 3 | 4 | 5 | _ | | + | 6 | 7 | 8 | 9 | 0 | | | | ||
| 41 | |------+------+------+------+------+------+------+--------------------+------+------+------+------+------+------+------| | ||
| 42 | | Ctrl | ^ | & | * | ( | ) | { | | } | Left | Down | Up | Right| : | " | | ||
| 43 | |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------| | ||
| 44 | | Shift| ! | @ | # | $ | % | GUI | | GUI | _ | + | < | > | ? | Shift| | ||
| 45 | |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------| | ||
| 46 | | Ctrl | ESC | ALt | EISU |||||||| kana | Raise| Space|||||||| Enter| Lower|Delete|||||||| Home |PageDn|PageUp| End | | ||
| 47 | ,----------------------------------------------------------------------------------------------------------------------. | ||
| 48 | ``` | ||
| 49 | |||
| 50 | ### Adjust | ||
| 51 | |||
| 52 | ``` | ||
| 53 | ,----------------------------------------------------------------------------------------------------------------------. | ||
| 54 | | | Reset|RGB ON| MODE| HUE-| HUE+| | | | SAT-| SAT+| VAL-| VAL+| | | | ||
| 55 | |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------| | ||
| 56 | | | | | | | | | | | | | | ||
| 57 | |------+------+------+------+------+------+---------------------------+------+------+------+------+------+------+------| | ||
| 58 | | F1 | F2 | F3 | F4 | F5 | F6 | | | | F7 | F8 | F9 | F10 | F11 | F12 | | ||
| 59 | |-------------+------+------+------+------+------+------+------+------+------+------+------+------+------+-------------| | ||
| 60 | | | | | |||||||| | | |||||||| | | |||||||| | | | | | ||
| 61 | ,----------------------------------------------------------------------------------------------------------------------. | ||
| 62 | ``` | ||
diff --git a/keyboards/ergodash/mini/keymaps/toyoshimahidenori/rules.mk b/keyboards/ergodash/mini/keymaps/toyoshimahidenori/rules.mk new file mode 100644 index 000000000..11b62b9bf --- /dev/null +++ b/keyboards/ergodash/mini/keymaps/toyoshimahidenori/rules.mk | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | BACKLIGHT_ENABLE = yes | ||
| 2 | RGBLIGHT_ENABLE = yes | ||
| 3 | AUDIO_ENABLE = no | ||
