diff options
Diffstat (limited to 'keyboards/amj40/keymaps')
| -rwxr-xr-x | keyboards/amj40/keymaps/default/build.sh | 42 | ||||
| -rwxr-xr-x | keyboards/amj40/keymaps/default/keymap.c | 242 | ||||
| -rw-r--r-- | keyboards/amj40/keymaps/default/rules.mk | 20 | ||||
| -rwxr-xr-x | keyboards/amj40/keymaps/default/updatemerge.sh | 4 | ||||
| -rw-r--r-- | keyboards/amj40/keymaps/default_625u_space/keymap.c | 41 | ||||
| -rw-r--r-- | keyboards/amj40/keymaps/default_ortho_275u_space/keymap.c | 40 | ||||
| -rw-r--r-- | keyboards/amj40/keymaps/default_ortho_600u_space/keymap.c | 38 |
7 files changed, 244 insertions, 183 deletions
diff --git a/keyboards/amj40/keymaps/default/build.sh b/keyboards/amj40/keymaps/default/build.sh deleted file mode 100755 index 6b4b4568f..000000000 --- a/keyboards/amj40/keymaps/default/build.sh +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | # adjust for cpu | ||
| 3 | # -j 16 gave best result on a hyperthreaded quad core core i7 | ||
| 4 | |||
| 5 | LIMIT=10 | ||
| 6 | THREADS="-j 16" | ||
| 7 | KMAP=iso_split_rshift | ||
| 8 | |||
| 9 | echo "We need sudo later" | ||
| 10 | sudo ls 2>&1 /dev/null | ||
| 11 | |||
| 12 | function wait_bootloader { | ||
| 13 | echo "Waiting for Bootloader..." | ||
| 14 | local STARTTIME=$(date +"%s") | ||
| 15 | local REMIND=0 | ||
| 16 | local EXEC=dfu-programmer | ||
| 17 | local TARGET=atmega32u4 | ||
| 18 | while true | ||
| 19 | do | ||
| 20 | sudo $EXEC $TARGET get > /dev/null 2>&1 | ||
| 21 | [ $? -eq 0 ] && break | ||
| 22 | ENDTIME=$(date +"%s") | ||
| 23 | DURATION=$(($ENDTIME-$STARTTIME)) | ||
| 24 | if [ $REMIND -eq 0 -a $DURATION -gt $LIMIT ] | ||
| 25 | then | ||
| 26 | echo "Did you forget to press the reset button?" | ||
| 27 | REMIND=1 | ||
| 28 | fi | ||
| 29 | sleep 1 | ||
| 30 | done | ||
| 31 | } | ||
| 32 | make clean | ||
| 33 | make KEYMAP=${KMAP} ${THREADS} | ||
| 34 | if [[ $? -eq 0 ]] | ||
| 35 | then | ||
| 36 | echo "please trigger flashing!" | ||
| 37 | wait_bootloader | ||
| 38 | sudo make KEYMAP=${KMAP} dfu ${THREADS} | ||
| 39 | else | ||
| 40 | echo "make failed" | ||
| 41 | exit 77 | ||
| 42 | fi | ||
diff --git a/keyboards/amj40/keymaps/default/keymap.c b/keyboards/amj40/keymaps/default/keymap.c index 951857de8..658b4b3c5 100755 --- a/keyboards/amj40/keymaps/default/keymap.c +++ b/keyboards/amj40/keymaps/default/keymap.c | |||
| @@ -1,135 +1,143 @@ | |||
| 1 | 1 | /* Copyright 2017 Fabian Topfstedt | |
| 2 | 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 | */ | ||
| 3 | 16 | ||
| 4 | #include QMK_KEYBOARD_H | 17 | #include QMK_KEYBOARD_H |
| 5 | 18 | ||
| 6 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | 19 | enum layer_names { |
| 7 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | 20 | _QWERTY, |
| 8 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | 21 | _LOWER, |
| 9 | // entirely and just use numbers. | 22 | _RAISE, |
| 10 | #define _QWERTY 0 | 23 | _ADJUST, |
| 11 | #define _LOWER 1 | 24 | }; |
| 12 | #define _RAISE 2 | ||
| 13 | #define _ADJUST 3 | ||
| 14 | |||
| 15 | |||
| 16 | 25 | ||
| 17 | enum custom_keycodes { | 26 | enum custom_keycodes { |
| 18 | QWERTY = SAFE_RANGE, | 27 | QWERTY = SAFE_RANGE, |
| 19 | LOWER, | 28 | LOWER, |
| 20 | RAISE, | 29 | RAISE, |
| 21 | ADJUST, | 30 | ADJUST, |
| 22 | }; | 31 | }; |
| 23 | 32 | ||
| 33 | #define LT1_SPC LT(_LOWER,KC_SPC) | ||
| 34 | #define LT2_SPC LT(_RAISE,KC_SPC) | ||
| 35 | #define LT3_LGU LT(_ADJUST,KC_LGUI) | ||
| 36 | |||
| 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 37 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 25 | /* Default Layer | 38 | /* Default Layer |
| 26 | * ,-----------------------------------------------------------. | 39 | * ,-----------------------------------------------. |
| 27 | * | Esc| Q | W | E | R | T | Y | U | I | O | P | BS | | 40 | * |Esc| Q | W | E | R | T | Y | U | I | O | P |BS | |
| 28 | * |-----------------------------------------------------------| | 41 | * |-----------------------------------------------| |
| 29 | * | Tab | A | S | D | F | G | H | J | K | L | Ent | | 42 | * |Tab | A | S | D | F | G | H | J | K | L |Enter | |
| 30 | * |-----------------------------------------------------------| | 43 | * |-----------------------------------------------| |
| 31 | * | LSft | Z | X | C | V | B | N | M | , | . | /? | | 44 | * | LSft | Z | X | C | V | B | N | M | , | . |/? | |
| 32 | * |-----------------------------------------------------------| | 45 | * |-----------------------------------------------| |
| 33 | * | LCtl | LGui| LAlt| spc fn0 | spc fn1 |fn2|RAlt|RCtl | | 46 | * |LCtl|GUI|LAlt|Spc/Fn0 | Spc/Fn1 |Fn2 |Alt|RCtl| |
| 34 | * `-----------------------------------------------------------' | 47 | * `-----------------------------------------------' |
| 35 | */ | 48 | */ |
| 36 | [_QWERTY] = LAYOUT( \ | 49 | [_QWERTY] = LAYOUT( |
| 37 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,\ | 50 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, |
| 38 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,\ | 51 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, |
| 39 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,\ | 52 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, |
| 40 | KC_LCTL, KC_LGUI, KC_LALT, LT(_LOWER, KC_SPC),LT(_RAISE, KC_SPC),LT(_ADJUST, KC_LGUI), KC_RALT, KC_RCTL \ | 53 | KC_LCTL, KC_LGUI, KC_LALT, LT1_SPC, LT2_SPC, LT3_LGU, KC_RALT, KC_RCTL |
| 41 | ), | 54 | ), |
| 42 | 55 | ||
| 43 | /* Function Layer 1 HHKB style | 56 | /* Function Layer 1 HHKB style |
| 44 | * ,-----------------------------------------------------------. | 57 | * ,-----------------------------------------------. |
| 45 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bkspc| | 58 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) |BS | |
| 46 | * |-----------------------------------------------------------| | 59 | * |-----------------------------------------------| |
| 47 | * | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | [ | ] | Pipe | | 60 | * | F1 |F2 |F3 |F4 |F5 |F6 | _ | + | { | } | Pipe | |
| 48 | * |-----------------------------------------------------------| | 61 | * |-----------------------------------------------| |
| 49 | * | F7 | F8 | F9 | F10 | F11 | F12 | End|PgDn| ↓ | | | | 62 | * | F7 |F8 |F9 |F10|F11|F12| ~ | | |BL±|BL+ |BL-| |
| 50 | * |-----------------------------------------------------------| | 63 | * |-----------------------------------------------| |
| 51 | * | | | | | | Stop| App| | | 64 | * | | | | | Left |Down|Up |Rght| |
| 52 | * `-----------------------------------------------------------' | 65 | * `-----------------------------------------------' |
| 53 | */ | 66 | */ |
| 54 | [_LOWER] = LAYOUT( \ | 67 | [_LOWER] = LAYOUT( |
| 55 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, \ | 68 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, |
| 56 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \ | 69 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, |
| 57 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),BL_TOGG, BL_INC, BL_DEC, \ | 70 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), BL_TOGG, BL_INC, BL_DEC, |
| 58 | _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ | 71 | _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT |
| 59 | ), | 72 | ), |
| 60 | |||
| 61 | /* Function Layer 1 HHKB style | ||
| 62 | * ,-----------------------------------------------------------. | ||
| 63 | * |Caps| |MSel| ⏮ | ⏯ | ⏭ |PSCR|SkLk|Paus| ↑ | Ins| Del| | ||
| 64 | * |-----------------------------------------------------------| | ||
| 65 | * | | 🔇 | ⏏ | | * | / |Hone|PgUp| ← | → | | | ||
| 66 | * |-----------------------------------------------------------| | ||
| 67 | * | | 🔉 | 🔊 | | + | - | End|PgDn| ↓ | | | | ||
| 68 | * |-----------------------------------------------------------| | ||
| 69 | * | | | | | | Stop| App| | | ||
| 70 | * `-----------------------------------------------------------' | ||
| 71 | */ | ||
| 72 | [_RAISE] = LAYOUT( \ | ||
| 73 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ | ||
| 74 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \ | ||
| 75 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, KC_DEL, \ | ||
| 76 | _______, KC_TRNS, _______, KC_TRNS, KC_TRNS, _______, _______, RGB_TOG \ | ||
| 77 | ), | ||
| 78 | |||
| 79 | /* Function Layer 1 HHKB style | ||
| 80 | * ,-----------------------------------------------------------. | ||
| 81 | * |Caps| |MSel| ⏮ | ⏯ | ⏭ |PSCR|SkLk|Paus| ↑ | Ins| Del| | ||
| 82 | * |-----------------------------------------------------------| | ||
| 83 | * | | 🔇 | ⏏ | | * | / |Hone|PgUp| ← | → | | | ||
| 84 | * |-----------------------------------------------------------| | ||
| 85 | * | | 🔉 | 🔊 | | + | - | End|PgDn| ↓ | | | | ||
| 86 | * |-----------------------------------------------------------| | ||
| 87 | * | | | | | | Stop| App| | | ||
| 88 | * `-----------------------------------------------------------' | ||
| 89 | */ | ||
| 90 | [_ADJUST] = LAYOUT( \ | ||
| 91 | _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \ | ||
| 92 | _______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, \ | ||
| 93 | _______, _______, _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, \ | ||
| 94 | KC_SYSTEM_SLEEP, _______, _______, _______, _______, _______, _______, _______ \ | ||
| 95 | ), | ||
| 96 | 73 | ||
| 97 | 74 | /* Function Layer 1 HHKB style | |
| 75 | * ,-----------------------------------------------. | ||
| 76 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 |BS | | ||
| 77 | * |-----------------------------------------------| | ||
| 78 | * | F1 |F2 |F3 |F4 |F5 |F6 | - | = | [ | ] | \ | | ||
| 79 | * |-----------------------------------------------| | ||
| 80 | * | F7 |F8 |F9 |F10|F11|F12| # | \ | | |Del| | ||
| 81 | * |-----------------------------------------------| | ||
| 82 | * | | | | | | | |RGB±| | ||
| 83 | * `-----------------------------------------------' | ||
| 84 | */ | ||
| 85 | [_RAISE] = LAYOUT( | ||
| 86 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 87 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 88 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, KC_DEL, | ||
| 89 | _______, _______, _______, _______, _______, _______, _______, RGB_TOG | ||
| 90 | ), | ||
| 98 | 91 | ||
| 92 | /* Function Layer 1 HHKB style | ||
| 93 | * ,-----------------------------------------------. | ||
| 94 | * | |RST| | | | | | | | | |Del| | ||
| 95 | * |-----------------------------------------------| | ||
| 96 | * | | | |Au1|Au0|AGN|AGS| | | | | | ||
| 97 | * |-----------------------------------------------| | ||
| 98 | * | | | |RTg|RMd|RH+|RH-|RS+|RS-|RV+ |RV-| | ||
| 99 | * |-----------------------------------------------| | ||
| 100 | * |SLP | | | | | | |RTg | | ||
| 101 | * `-----------------------------------------------' | ||
| 102 | */ | ||
| 103 | [_ADJUST] = LAYOUT( | ||
| 104 | _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, | ||
| 105 | _______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, | ||
| 106 | _______, _______, _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, | ||
| 107 | KC_SLEP, _______, _______, _______, _______, _______, _______, _______ | ||
| 108 | ), | ||
| 99 | }; | 109 | }; |
| 100 | 110 | ||
| 101 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 111 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| 102 | 112 | switch (keycode) { | |
| 103 | switch (keycode) { | 113 | case LOWER: |
| 104 | 114 | if (record->event.pressed) { | |
| 105 | case LOWER: | 115 | layer_on(_LOWER); |
| 106 | if (record->event.pressed) { | 116 | update_tri_layer(_LOWER, _RAISE, _ADJUST); |
| 107 | layer_on(_LOWER); | 117 | } else { |
| 108 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | 118 | layer_off(_LOWER); |
| 109 | } else { | 119 | update_tri_layer(_LOWER, _RAISE, _ADJUST); |
| 110 | layer_off(_LOWER); | 120 | } |
| 111 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | 121 | return false; |
| 112 | } | 122 | break; |
| 113 | return false; | 123 | case RAISE: |
| 114 | break; | 124 | if (record->event.pressed) { |
| 115 | case RAISE: | 125 | layer_on(_RAISE); |
| 116 | if (record->event.pressed) { | 126 | update_tri_layer(_LOWER, _RAISE, _ADJUST); |
| 117 | layer_on(_RAISE); | 127 | } else { |
| 118 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | 128 | layer_off(_RAISE); |
| 119 | } else { | 129 | update_tri_layer(_LOWER, _RAISE, _ADJUST); |
| 120 | layer_off(_RAISE); | 130 | } |
| 121 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | 131 | return false; |
| 122 | } | 132 | break; |
| 123 | return false; | 133 | case ADJUST: |
| 124 | break; | 134 | if (record->event.pressed) { |
| 125 | case ADJUST: | 135 | layer_on(_ADJUST); |
| 126 | if (record->event.pressed) { | 136 | } else { |
| 127 | layer_on(_ADJUST); | 137 | layer_off(_ADJUST); |
| 128 | } else { | 138 | } |
| 129 | layer_off(_ADJUST); | 139 | return false; |
| 130 | } | 140 | break; |
| 131 | return false; | 141 | } |
| 132 | break; | 142 | return true; |
| 133 | } | ||
| 134 | return true; | ||
| 135 | } | 143 | } |
diff --git a/keyboards/amj40/keymaps/default/rules.mk b/keyboards/amj40/keymaps/default/rules.mk deleted file mode 100644 index 957f209b7..000000000 --- a/keyboards/amj40/keymaps/default/rules.mk +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | # Build Options | ||
| 2 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 3 | # the appropriate keymap folder that will get included automatically | ||
| 4 | # | ||
| 5 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 6 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 7 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 8 | CONSOLE_ENABLE = no # Console for debug | ||
| 9 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 11 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 12 | MIDI_ENABLE = no # MIDI controls | ||
| 13 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 14 | UNICODE_ENABLE = no # Unicode | ||
| 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 16 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | ||
| 17 | |||
| 18 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 19 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 20 | |||
diff --git a/keyboards/amj40/keymaps/default/updatemerge.sh b/keyboards/amj40/keymaps/default/updatemerge.sh deleted file mode 100755 index da5457e19..000000000 --- a/keyboards/amj40/keymaps/default/updatemerge.sh +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | git checkout amj60 # gets you on branch amj60 | ||
| 3 | git fetch origin # gets you up to date with origin | ||
| 4 | git merge origin/master | ||
diff --git a/keyboards/amj40/keymaps/default_625u_space/keymap.c b/keyboards/amj40/keymaps/default_625u_space/keymap.c new file mode 100644 index 000000000..f5b33ad84 --- /dev/null +++ b/keyboards/amj40/keymaps/default_625u_space/keymap.c | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* Copyright 2021 James Young (@noroadsleft) | ||
| 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 | #define LT1_SCL LT(1, KC_SCLN) | ||
| 20 | #define LT2_QUO LT(2, KC_QUOT) | ||
| 21 | |||
| 22 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 23 | [0] = LAYOUT_625u_space( | ||
| 24 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 25 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, | ||
| 26 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, | ||
| 27 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, LT1_SCL, LT2_QUO | ||
| 28 | ), | ||
| 29 | [1] = LAYOUT_625u_space( | ||
| 30 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 31 | KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, _______, KC_INS, | ||
| 32 | _______, KC_SCLN, KC_QUOT, KC_COLN, KC_DQUO, KC_TILD, KC_LABK, KC_RABK, KC_LBRC, KC_RBRC, _______, | ||
| 33 | _______, _______, _______, _______, _______, _______ | ||
| 34 | ), | ||
| 35 | [2] = LAYOUT_625u_space( | ||
| 36 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 37 | RESET, KC_PWR, _______, _______, KC_PSCR, KC_PAUS, BL_TOGG, BL_DEC, BL_INC, BL_STEP, _______, | ||
| 38 | KC_UP, KC_MINS, KC_EQL, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, KC_LPRN, KC_RPRN, _______, | ||
| 39 | KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______ | ||
| 40 | ), | ||
| 41 | }; | ||
diff --git a/keyboards/amj40/keymaps/default_ortho_275u_space/keymap.c b/keyboards/amj40/keymaps/default_ortho_275u_space/keymap.c new file mode 100644 index 000000000..fe9988469 --- /dev/null +++ b/keyboards/amj40/keymaps/default_ortho_275u_space/keymap.c | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* Copyright 2021 James Young (@noroadsleft) | ||
| 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 | #define LT2_SLS LT(2,KC_SLSH) | ||
| 20 | |||
| 21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 22 | [0] = LAYOUT_ortho_275u_space( | ||
| 23 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 24 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_ENT, | ||
| 26 | KC_CAPS, KC_LCTL, KC_LALT, KC_LGUI, MO(1), KC_SPC, LT2_SLS, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 27 | ), | ||
| 28 | [1] = LAYOUT_ortho_275u_space( | ||
| 29 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, KC_SLSH, KC_QUES, KC_UP, _______, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 33 | ), | ||
| 34 | [2] = LAYOUT_ortho_275u_space( | ||
| 35 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 36 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 37 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, BL_TOGG, BL_DEC, BL_INC, BL_STEP, _______, | ||
| 38 | RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 39 | ), | ||
| 40 | }; | ||
diff --git a/keyboards/amj40/keymaps/default_ortho_600u_space/keymap.c b/keyboards/amj40/keymaps/default_ortho_600u_space/keymap.c new file mode 100644 index 000000000..527390cd1 --- /dev/null +++ b/keyboards/amj40/keymaps/default_ortho_600u_space/keymap.c | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | /* Copyright 2021 James Young (@noroadsleft) | ||
| 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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | [0] = LAYOUT_ortho_600u_space( | ||
| 21 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 22 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_A, KC_ENT, | ||
| 23 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, | ||
| 24 | KC_LCTL, KC_LGUI, MO(1), KC_SPC, MO(2), KC_BSLS, KC_B | ||
| 25 | ), | ||
| 26 | [1] = LAYOUT_ortho_600u_space( | ||
| 27 | KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_BSPC, | ||
| 28 | KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_UP, _______, | ||
| 29 | KC_UNDS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_SCLN, KC_QUOT, KC_GRV, _______, KC_LEFT, KC_DOWN, KC_RGHT, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______ | ||
| 31 | ), | ||
| 32 | [2] = LAYOUT_ortho_600u_space( | ||
| 33 | RESET, _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, _______, _______, | ||
| 34 | _______, _______, _______, _______, _______, _______, BL_TOGG, BL_DEC, BL_INC, BL_STEP, _______, _______, | ||
| 35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 36 | _______, _______, _______, _______, _______, _______, _______ | ||
| 37 | ), | ||
| 38 | }; | ||
