diff options
| author | Damien <Dbroqua@users.noreply.github.com> | 2018-07-16 17:38:21 +0200 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-07-16 08:38:21 -0700 |
| commit | c37ce43437d56cb116d1e64491956f0aa30ee70b (patch) | |
| tree | d54628be7bbb199b608467897f53062e8ea0a025 | |
| parent | f2fcffab0d511eee2ea01151b1cd9a1ead0bb557 (diff) | |
| download | qmk_firmware-c37ce43437d56cb116d1e64491956f0aa30ee70b.tar.gz qmk_firmware-c37ce43437d56cb116d1e64491956f0aa30ee70b.zip | |
Added dbroqua layout for Iris keyboard (#3414)
* - Fixed DK60 version in config.h
* - Updated dk60 readme with new QMK rules
* - Fixed wording in readme
* Added dbroqua layout for DZ60
I've also updated dz60.h to add "true HHKD" keymap definition (6U
spacebar).
With the default HHKB definition r_alt was not mapped and when I pressed
r_menu it was r_alt.
Regards
* Updated dbroqua layout for HHKB keyboard
Added default configuration and alternate (swap gui/alt keys).
Save user choice in keyboard memory (like plank, thanks for this
feature!).
* Added dbroqua layout for Iris keyboard
* Updated layout and fixed includes
| -rw-r--r-- | keyboards/iris/keymaps/dbroqua/config.h | 27 | ||||
| -rw-r--r-- | keyboards/iris/keymaps/dbroqua/keymap.c | 125 | ||||
| -rw-r--r-- | keyboards/iris/keymaps/dbroqua/rules.mk | 2 |
3 files changed, 154 insertions, 0 deletions
diff --git a/keyboards/iris/keymaps/dbroqua/config.h b/keyboards/iris/keymaps/dbroqua/config.h new file mode 100644 index 000000000..130b52c28 --- /dev/null +++ b/keyboards/iris/keymaps/dbroqua/config.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2017 Danny Nguyen <danny@keeb.io> | ||
| 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_common.h" | ||
| 22 | |||
| 23 | #define USE_SERIAL | ||
| 24 | |||
| 25 | #define MASTER_LEFT | ||
| 26 | |||
| 27 | #endif | ||
diff --git a/keyboards/iris/keymaps/dbroqua/keymap.c b/keyboards/iris/keymaps/dbroqua/keymap.c new file mode 100644 index 000000000..eed288c50 --- /dev/null +++ b/keyboards/iris/keymaps/dbroqua/keymap.c | |||
| @@ -0,0 +1,125 @@ | |||
| 1 | |||
| 2 | #include QMK_KEYBOARD_H | ||
| 3 | |||
| 4 | extern keymap_config_t keymap_config; | ||
| 5 | |||
| 6 | #define _QWERTY 0 | ||
| 7 | #define _LOWER 1 | ||
| 8 | #define _RAISE 2 | ||
| 9 | |||
| 10 | enum custom_keycodes { | ||
| 11 | QWERTY = SAFE_RANGE, | ||
| 12 | LOWER, | ||
| 13 | RAISE, | ||
| 14 | }; | ||
| 15 | |||
| 16 | #define KC_ KC_TRNS | ||
| 17 | #define _______ KC_TRNS | ||
| 18 | |||
| 19 | #define KC_LOWR LOWER | ||
| 20 | #define KC_RASE RAISE | ||
| 21 | #define KC_RST RESET | ||
| 22 | #define KC_DBUG DEBUG | ||
| 23 | |||
| 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 25 | |||
| 26 | [_QWERTY] = LAYOUT_kc( | ||
| 27 | /* | ||
| 28 | * ,-----+-----+-----+-----+-----+-----+ ,-----+-----+-----+-----+-----+-----+ | ||
| 29 | * | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ` | | ||
| 30 | * |-----+-----+-----+-----+-----+-----+ +-----+-----+-----+-----+-----+-----+ | ||
| 31 | * | TAB | Q | W | E | R | T | | Y | U | I | O | P | BSPC| | ||
| 32 | * +-----+-----+-----+-----+-----+-----+ +-----+-----+-----+-----+-----+-----+ | ||
| 33 | * | LCTL| A | S | D | F | G | | H | J | K | L | ; | ' | | ||
| 34 | * +-----+-----+-----+-----+-----+-----+-----. ,-----+-----+-----+-----+-----+-----+-----+ | ||
| 35 | * | LSFT| Z | X | C | V | B | / \ | N | M | , | . | / | RSFT| | ||
| 36 | * +-----+-----+-----+--+--+-----+-----+ SPC/ \ ENT+-----+-----+--+--+-----+-----+-----+ | ||
| 37 | * \ LGUI| LOWR| / \ | RASE| LALT/ | ||
| 38 | * `-----+-----+-----' `-----+-----+----' | ||
| 39 | */ | ||
| 40 | ESC , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 , GRV, | ||
| 41 | TAB , Q , W , E , R , T , Y , U , I , O , P ,BSPC, | ||
| 42 | LCTL, A , S , D , F , G , H , J , K , L ,SCLN,QUOT, | ||
| 43 | LSFT, Z , X , C , V , B , , , N , M ,COMM,DOT ,SLSH,RSFT, | ||
| 44 | LGUI,LOWR, SPC , ENT ,RASE,LALT | ||
| 45 | ), | ||
| 46 | |||
| 47 | [_LOWER] = LAYOUT_kc( | ||
| 48 | /* | ||
| 49 | * ,-----+-----+-----+-----+-----+-----+ ,-----+-----+-----+-----+-----+-----+ | ||
| 50 | * | ~ | ! | @ | # | $ | % | | ^ | & | * | ( | ) | BSPC| | ||
| 51 | * |-----+-----+-----+-----+-----+-----+ +-----+-----+-----+-----+-----+-----+ | ||
| 52 | * | RST | 1 | 2 | 3 | 5 | 5 | | 6 | 7 | 8 | 9 | 0 | | | ||
| 53 | * +-----+-----+-----+-----+-----+-----+ +-----+-----+-----+-----+-----+-----+ | ||
| 54 | * | DEL | | LEFT| RGHT| UP | [ | | ] | 4 | 5 | 6 | + | | | | ||
| 55 | * +-----+-----+-----+-----+-----+-----+-----. ,-----+-----+-----+-----+-----+-----+-----+ | ||
| 56 | * | | | | | DOWN| { | / \ | } | 1 | 2 | 3 | - | | | ||
| 57 | * +-----+-----+-----+--+--+-----+-----+ DEL/ \ DEL+-----+-----+--+--+-----+-----+-----+ | ||
| 58 | * \ | | / \ | | 0 / | ||
| 59 | * `-----+-----+-----' `-----+-----+----' | ||
| 60 | */ | ||
| 61 | TILD,EXLM, AT ,HASH,DLR ,PERC, CIRC,AMPR,ASTR,LPRN,RPRN,BSPC, | ||
| 62 | RST , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 , , | ||
| 63 | DEL , ,LEFT,RGHT, UP ,LBRC, RBRC, P4 , P5 , P6 ,PLUS,PIPE, | ||
| 64 | , , , ,DOWN,LCBR, , ,RCBR, P1 , P2 , P3 ,MINS, , | ||
| 65 | , ,DEL , DEL , , P0 | ||
| 66 | ), | ||
| 67 | |||
| 68 | [_RAISE] = LAYOUT_kc( | ||
| 69 | /* | ||
| 70 | * ,-----+-----+-----+-----+-----+-----+ ,-----+-----+-----+-----+-----+-----+ | ||
| 71 | * | F12 | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F11 | | ||
| 72 | * |-----+-----+-----+-----+-----+-----+ +-----+-----+-----+-----+-----+-----+ | ||
| 73 | * | | ! | @ | # | $ | % | | ^ | & | * | ( | ) | | | ||
| 74 | * +-----+-----+-----+-----+-----+-----+ +-----+-----+-----+-----+-----+-----+ | ||
| 75 | * | | Prev| Next| Vol+| PgUp| _ | | = | Home| | | + | \ | | ||
| 76 | * +-----+-----+-----+-----+-----+-----+-----. ,-----+-----+-----+-----+-----+-----+-----+ | ||
| 77 | * | Mute| Stop| Play| Vol-| PgDn| - | / \ | + | End | | | |Debug| | ||
| 78 | * +-----+-----+-----+--+--+-----+-----+ / \ +-----+-----+--+--+-----+-----+-----+ | ||
| 79 | * \ | | / \ | | 0 / | ||
| 80 | * `-----+-----+-----' `-----+-----+----' | ||
| 81 | */ | ||
| 82 | F12 , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F11 , | ||
| 83 | ,EXLM, AT ,HASH,DLR ,PERC, CIRC,AMPR,ASTR,LPRN,RPRN, , | ||
| 84 | ,MPRV,MNXT,VOLU,PGUP,UNDS, EQL ,HOME, , , ,BSLS, | ||
| 85 | MUTE,MSTP,MPLY,VOLD,PGDN,MINS, , ,PLUS,END , , , ,DBUG, | ||
| 86 | , , , , , | ||
| 87 | ) | ||
| 88 | }; | ||
| 89 | |||
| 90 | void persistent_default_layer_set(uint16_t default_layer) { | ||
| 91 | eeconfig_update_default_layer(default_layer); | ||
| 92 | default_layer_set(default_layer); | ||
| 93 | } | ||
| 94 | |||
| 95 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 96 | switch (keycode) { | ||
| 97 | case QWERTY: | ||
| 98 | if (record->event.pressed) { | ||
| 99 | persistent_default_layer_set(1UL<<_QWERTY); | ||
| 100 | } | ||
| 101 | return false; | ||
| 102 | break; | ||
| 103 | case LOWER: | ||
| 104 | if (record->event.pressed) { | ||
| 105 | layer_on(_LOWER); | ||
| 106 | update_tri_layer(_LOWER, _RAISE, _QWERTY); | ||
| 107 | } else { | ||
| 108 | layer_off(_LOWER); | ||
| 109 | update_tri_layer(_LOWER, _RAISE, _QWERTY); | ||
| 110 | } | ||
| 111 | return false; | ||
| 112 | break; | ||
| 113 | case RAISE: | ||
| 114 | if (record->event.pressed) { | ||
| 115 | layer_on(_RAISE); | ||
| 116 | update_tri_layer(_LOWER, _RAISE, _QWERTY); | ||
| 117 | } else { | ||
| 118 | layer_off(_RAISE); | ||
| 119 | update_tri_layer(_LOWER, _RAISE, _QWERTY); | ||
| 120 | } | ||
| 121 | return false; | ||
| 122 | break; | ||
| 123 | } | ||
| 124 | return true; | ||
| 125 | } | ||
diff --git a/keyboards/iris/keymaps/dbroqua/rules.mk b/keyboards/iris/keymaps/dbroqua/rules.mk new file mode 100644 index 000000000..1d2d9e5a9 --- /dev/null +++ b/keyboards/iris/keymaps/dbroqua/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | RGBLIGHT_ENABLE = no | ||
| 2 | BACKLIGHT_ENABLE = no | ||
