diff options
Diffstat (limited to 'keyboards/noxary/x268/keymaps/default/keymap.c')
| -rw-r--r-- | keyboards/noxary/x268/keymaps/default/keymap.c | 142 |
1 files changed, 85 insertions, 57 deletions
diff --git a/keyboards/noxary/x268/keymaps/default/keymap.c b/keyboards/noxary/x268/keymaps/default/keymap.c index ae07f5213..7f26a6c10 100644 --- a/keyboards/noxary/x268/keymaps/default/keymap.c +++ b/keyboards/noxary/x268/keymaps/default/keymap.c | |||
| @@ -1,83 +1,111 @@ | |||
| 1 | /* Copyright 2020 Rozakiin | ||
| 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 | */ | ||
| 1 | #include QMK_KEYBOARD_H | 16 | #include QMK_KEYBOARD_H |
| 2 | 17 | ||
| 3 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | 18 | // Each layer gets a name for readability, which is then used in the keymap matrix below. |
| 4 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | 19 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. |
| 5 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | 20 | // Layer names don't all need to be of the same length, obviously, and you can also skip them |
| 6 | // entirely and just use numbers. | 21 | // entirely and just use numbers. |
| 7 | #define _BL 0 | 22 | enum layer_names { |
| 8 | #define _FL1 1 | 23 | _BL, |
| 9 | #define _FL2 2 | 24 | _FL1, |
| 25 | _FL2, | ||
| 26 | _FL3 | ||
| 27 | }; | ||
| 28 | |||
| 10 | 29 | ||
| 11 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 30 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 12 | /* _BL: Base Layer(Default) - For ISO enter use ANSI enter | 31 | /* Base Layer - For ISO enter use ANSI enter |
| 13 | * ,----------------------------------------------------------------. | 32 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐ |
| 14 | * |Esc | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \|BSpc| Grv| | 33 | * │Esc│ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ \ │Bsp│ ` │ |
| 15 | * |----------------------------------------------------------------| | 34 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤ |
| 16 | * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ | Del| | 35 | * │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ │Del│ |
| 17 | * |----------------------------------------------------------------| | 36 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤ |
| 18 | * |CAPS | A| S| D| F| G| H| J| K| L| ;| '| #| Ent|PgUp| | 37 | * │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ # │Ent │PgU│ |
| 19 | * |----------------------------------------------------------------| | 38 | * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤ |
| 20 | * |Shift| \| Z| X| C| V| B| N| M| ,| .| /|Shift | Up|PgDn| | 39 | * │Sft │ \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │Shift │ ↑ │PgD│ |
| 21 | * |----------------------------------------------------------------| | 40 | * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┼───┴┬──┴─┬─┴──┬───┼───┼───┤ |
| 22 | * |Ctrl|Win |Alt | Space |Alt|Mo(1)|Ctrl|Lef|Dow|Rght| | 41 | * │Ctrl│Win │Alt │ Space │Alt │M(1)│Ctrl│ ← │ ↓ │ → │ |
| 23 | * `----------------------------------------------------------------' | 42 | * └────┴────┴────┴─────────────────────┴────┴────┴────┴───┴───┴───┘ |
| 24 | */ | 43 | */ |
| 25 | [_BL] = LAYOUT( | 44 | [_BL] = LAYOUT( |
| 26 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_BSPC, KC_GRV, | 45 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_BSPC, KC_GRV, |
| 27 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, | 46 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, |
| 28 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_PGUP, | 47 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_PGUP, |
| 29 | KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, | 48 | KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, |
| 30 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_LALT, MO(_FL1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), | 49 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_LALT, MO(_FL1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT |
| 31 | /* _FL1: Function Layer 1 - For ISO enter use ANSI enter | 50 | ), |
| 32 | * ,----------------------------------------------------------------. | 51 | /* Function Layer 1 - For ISO enter use ANSI enter |
| 33 | * | `|F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| |PScr| | | 52 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐ |
| 34 | * |----------------------------------------------------------------| | 53 | * │ ` │F1 │F2 │F3 │F4 │F5 │F6 │F7 │F8 │F9 │F10│F11│F12│ │Psc│ │ |
| 35 | * | | | | |RST| | | | | | | | | | Ins| | 54 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤ |
| 36 | * |----------------------------------------------------------------| | 55 | * │ │ │ │ │RST│ │ │ │ │ │ │ │ │ │Ins│ |
| 37 | * | | | | | | | | | | | | | | |Home| | 56 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤ |
| 38 | * |----------------------------------------------------------------| | 57 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │Hme│ |
| 39 | * | | | | | | | | | |Bl-|Bl+| |Mute|Vol+| End| | 58 | * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤ |
| 40 | * |----------------------------------------------------------------| | 59 | * │ │ │ │ │ │ │ │ │ │Bl-│Bl+│ │ Mute │Vl+│End│ |
| 41 | * | | | | BL_Toggle | | | | |Vol-| | | 60 | * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┼───┴┬──┴─┬─┴──┬───┼───┼───┤ |
| 42 | * `----------------------------------------------------------------' | 61 | * │ │ │ │ BL_Toggle │ │ │ │ │Vl-│ │ |
| 62 | * └────┴────┴────┴─────────────────────┴────┴────┴────┴───┴───┴───┘ | ||
| 43 | */ | 63 | */ |
| 44 | [_FL1] = LAYOUT( | 64 | [_FL1] = LAYOUT( |
| 45 | KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, KC_PSCR, _______, | 65 | KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, KC_PSCR, _______, |
| 46 | RGB_TOG, RGB_VAI, RGB_SAI, RGB_HUI, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS, | 66 | RGB_TOG, RGB_VAI, RGB_SAI, RGB_HUI, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS, |
| 47 | _______, RGB_VAD, RGB_SAD, RGB_HUD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, | 67 | _______, RGB_VAD, RGB_SAD, RGB_HUD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, |
| 48 | _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_DEC, BL_INC, _______, KC_MUTE, KC_VOLU, KC_END, | 68 | _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_DEC, BL_INC, _______, KC_MUTE, KC_VOLU, KC_END, |
| 49 | _______, _______, _______, BL_TOGG, _______, _______, _______, _______, KC_VOLD, _______), | 69 | _______, _______, _______, BL_TOGG, _______, _______, _______, _______, KC_VOLD, _______ |
| 50 | /* _FL2: Function Layer 2 - For ISO enter use ANSI enter | 70 | ), |
| 51 | * ,----------------------------------------------------------------. | 71 | /* Function Layer 2 - For ISO enter use ANSI enter |
| 52 | * | | | | | | | | | | | | | | | | | | 72 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐ |
| 53 | * |----------------------------------------------------------------| | 73 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ |
| 54 | * | | | | | | | | | | | | | | | | | 74 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤ |
| 55 | * |----------------------------------------------------------------| | 75 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ |
| 56 | * | | | | | | | | | | | | | | | | | 76 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤ |
| 57 | * |----------------------------------------------------------------| | 77 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ |
| 58 | * | | | | | | | | | | | | | | | | | 78 | * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤ |
| 59 | * |----------------------------------------------------------------| | 79 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ |
| 60 | * | | | | | | | | | | | | 80 | * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┼───┴┬──┴─┬─┴──┬───┼───┼───┤ |
| 61 | * `----------------------------------------------------------------' | 81 | * │ │ │ │ │ │ │ │ │ │ │ |
| 82 | * └────┴────┴────┴─────────────────────┴────┴────┴────┴───┴───┴───┘ | ||
| 62 | */ | 83 | */ |
| 63 | [_FL2] = LAYOUT( | 84 | [_FL2] = LAYOUT( |
| 64 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 85 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 65 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 86 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 66 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 87 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 67 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 88 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 68 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______), | 89 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ |
| 69 | 90 | ), | |
| 70 | 91 | /* Function Layer 3 - For ISO enter use ANSI enter | |
| 71 | }; | 92 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐ |
| 72 | 93 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ | |
| 73 | 94 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤ | |
| 74 | void matrix_init_user(void) { | 95 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ |
| 75 | } | 96 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤ |
| 76 | 97 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ | |
| 77 | void matrix_scan_user(void) { | 98 | * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤ |
| 78 | } | 99 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ |
| 79 | 100 | * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┼───┴┬──┴─┬─┴──┬───┼───┼───┤ | |
| 80 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 101 | * │ │ │ │ │ │ │ │ │ │ │ |
| 81 | return true; | 102 | * └────┴────┴────┴─────────────────────┴────┴────┴────┴───┴───┴───┘ |
| 82 | } | 103 | */ |
| 83 | 104 | [_FL3] = LAYOUT( | |
| 105 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 106 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 107 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 108 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 109 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 110 | ), | ||
| 111 | }; \ No newline at end of file | ||
