diff options
| author | David Rambo <davrambo@gmail.com> | 2021-07-02 22:30:32 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-02 22:30:32 -0700 |
| commit | 170de06475c0b6c7a1a16bc6ac99f1994be17261 (patch) | |
| tree | b5625d27581629bf0a0ee3babd2ad4f8b6e14cf1 /keyboards/planck | |
| parent | f51d929bd9dff0c11b2cca515d7a2f28fc5995d4 (diff) | |
| download | qmk_firmware-170de06475c0b6c7a1a16bc6ac99f1994be17261.tar.gz qmk_firmware-170de06475c0b6c7a1a16bc6ac99f1994be17261.zip | |
[Keymap] Update personal keymaps, add Corne keymap, and update non-kc LAYOUT for Iris (#12273)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/planck')
| -rw-r--r-- | keyboards/planck/keymaps/davidrambo/keymap.c | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/keyboards/planck/keymaps/davidrambo/keymap.c b/keyboards/planck/keymaps/davidrambo/keymap.c index b82791194..fa524180f 100644 --- a/keyboards/planck/keymaps/davidrambo/keymap.c +++ b/keyboards/planck/keymaps/davidrambo/keymap.c | |||
| @@ -1,19 +1,38 @@ | |||
| 1 | /* Copyright 2021 David Rambo | ||
| 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 | |||
| 1 | #include QMK_KEYBOARD_H | 17 | #include QMK_KEYBOARD_H |
| 2 | 18 | ||
| 3 | #define A_BSPC LALT(KC_BSPC) | 19 | #define A_BSPC LALT(KC_BSPC) |
| 4 | #define A_LEFT LALT(KC_LEFT) | 20 | #define A_LEFT LALT(KC_LEFT) |
| 5 | #define A_RGHT LALT(KC_RGHT) | 21 | #define A_RGHT LALT(KC_RGHT) |
| 6 | #define C_TAB LCTL(KC_TAB) | 22 | #define C_TAB LCTL(KC_TAB) |
| 7 | #define GSL LGUI(S(KC_LEFT)) | 23 | #define CTLPGUP LCTL(KC_PGUP) // back one tab in Brave |
| 8 | #define GSR LGUI(S(KC_RGHT)) | 24 | #define CTLPGDN LCTL(KC_PGDN) // forward one tab in Brave |
| 9 | #define G_TAB LGUI(KC_TAB) | 25 | #define G_TAB LGUI(KC_TAB) |
| 10 | #define G_GRV LGUI(KC_GRV) | 26 | #define G_GRV LGUI(KC_GRV) |
| 11 | #define SftEnt SFT_T(KC_ENT) | 27 | #define SftEnt SFT_T(KC_ENT) |
| 12 | #define NAV LT(2, KC_TAB) | 28 | #define NAV LT(2, KC_TAB) |
| 29 | #define RECT LCA_T(KC_DEL) // Ctrl+Alt is the basis for Rectangle WM shortcuts | ||
| 13 | 30 | ||
| 14 | #define _COLEMAK 0 | 31 | enum custom_layers { |
| 15 | #define _SYMBOL 1 | 32 | _COLEMAK, |
| 16 | #define _NAVIGATION 2 | 33 | _SYMBOL, |
| 34 | _NAVIGATION, | ||
| 35 | } | ||
| 17 | 36 | ||
| 18 | //tapdance declarations | 37 | //tapdance declarations |
| 19 | enum { | 38 | enum { |
| @@ -40,7 +59,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 40 | KC_GESC, KC_Q , KC_W , KC_F , KC_P , KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC, | 59 | KC_GESC, KC_Q , KC_W , KC_F , KC_P , KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC, |
| 41 | NAV , KC_A , KC_R , KC_S , KC_T , KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, | 60 | NAV , KC_A , KC_R , KC_S , KC_T , KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, |
| 42 | SftLck , KC_Z , KC_X , KC_C , KC_V , KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, SftEnt , | 61 | SftLck , KC_Z , KC_X , KC_C , KC_V , KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, SftEnt , |
| 43 | KC_DEL , KC_LGUI, KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_SPC, MO(1), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | 62 | RECT , KC_LGUI, KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_SPC, MO(1), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT |
| 44 | ), | 63 | ), |
| 45 | 64 | ||
| 46 | /* Symbol | 65 | /* Symbol |
| @@ -49,7 +68,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 49 | * |------+------+------+------+------+-------------+------+------+------+------+------| | 68 | * |------+------+------+------+------+-------------+------+------+------+------+------| |
| 50 | * | \| | ! | @ | # | $ | % | ^ | & | * | ( | ) | =+ | | 69 | * | \| | ! | @ | # | $ | % | ^ | & | * | ( | ) | =+ | |
| 51 | * |------+------+------+------+------+------|------+------+------+------+------+------| | 70 | * |------+------+------+------+------+------|------+------+------+------+------+------| |
| 52 | * | | Home | End | ScUp | ScDn | BRMD | BRMU | -_ |Pg Up | | / | | | 71 | * | | Home | End | | | BRMD | BRMU | -_ |Pg Up | | / | | |
| 53 | * |------+------+------+------+------+------+------+------+------+------+------+------| | 72 | * |------+------+------+------+------+------+------+------+------+------+------+------| |
| 54 | * | `~ | | | |Alt(Bk)| | |Pg Dn | Vol- | Vol+ | | | 73 | * | `~ | | | |Alt(Bk)| | |Pg Dn | Vol- | Vol+ | | |
| 55 | * `-----------------------------------------------------------------------------------' | 74 | * `-----------------------------------------------------------------------------------' |
| @@ -58,15 +77,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 58 | KC_LBRC, KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_RBRC, | 77 | KC_LBRC, KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_RBRC, |
| 59 | KC_BSLS, KC_EXLM, KC_AT , KC_HASH, KC_DLR , KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_EQL , | 78 | KC_BSLS, KC_EXLM, KC_AT , KC_HASH, KC_DLR , KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_EQL , |
| 60 | _______, KC_HOME, KC_END , _______, _______, KC_BRMD, KC_BRMU, KC_MINS, KC_PGUP, _______, _______, _______, | 79 | _______, KC_HOME, KC_END , _______, _______, KC_BRMD, KC_BRMU, KC_MINS, KC_PGUP, _______, _______, _______, |
| 61 | KC_GRV, _______, _______, _______, A_BSPC , _______, _______, _______, KC_PGDN, KC_VOLD, KC_VOLU, KC_MUTE | 80 | _______, KC_GRV , _______, _______, _______ , _______, _______, _______, KC_PGDN, KC_VOLD, KC_VOLU, KC_MUTE |
| 62 | ), | 81 | ), |
| 63 | 82 | ||
| 64 | /* Navigation*/ | 83 | /* Navigation*/ |
| 65 | 84 | ||
| 66 | [_NAVIGATION] = LAYOUT_planck_grid( | 85 | [_NAVIGATION] = LAYOUT_planck_grid( |
| 67 | _______, _______, _______, _______, _______, _______, C_TAB , A_LEFT, KC_UP, A_RGHT , KC_DEL , _______, | 86 | _______, _______, _______, _______, _______, _______, C_TAB , A_LEFT, KC_UP, A_RGHT , KC_DEL , _______, |
| 68 | _______, _______, _______, _______, _______, _______, GSL , KC_LEFT, KC_DOWN, KC_RGHT, GSR , _______, | 87 | _______, _______, _______, _______, _______, _______, CTLPGUP, KC_LEFT, KC_DOWN, KC_RGHT, CTLPGDN, _______, |
| 69 | _______, _______, _______, _______, _______, _______, G_TAB , KC_HOME, _______, KC_END, G_GRV , _______, | 88 | _______, _______, _______, _______, _______, _______, G_TAB , A_BSPC , KC_HOME, KC_END, G_GRV , _______, |
| 70 | RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | 89 | RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ |
| 71 | ) | 90 | ) |
| 72 | }; | 91 | }; |
