diff options
| author | Harley Laue <losinggeneration@gmail.com> | 2018-05-18 13:58:23 -0700 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-05-18 13:58:23 -0700 |
| commit | 8cdb4a91501fab114ae55def050d06c7b9569f30 (patch) | |
| tree | 7cd77bef9b0740420c899c979b2fbc50be081bd8 /keyboards/contra | |
| parent | e721deb4a60403e338382dbd3bf9e829439d67ac (diff) | |
| download | qmk_firmware-8cdb4a91501fab114ae55def050d06c7b9569f30.tar.gz qmk_firmware-8cdb4a91501fab114ae55def050d06c7b9569f30.zip | |
Add Contra layout & cleanup a few things (#2998)
* Have Del become backspace on the bottom layer for grid layouts
* Fix modtap for ESC
* Add sleep to Adjust layer
Diffstat (limited to 'keyboards/contra')
| -rw-r--r-- | keyboards/contra/keymaps/losinggeneration/README.md | 30 | ||||
| -rw-r--r-- | keyboards/contra/keymaps/losinggeneration/config.h | 27 | ||||
| -rw-r--r-- | keyboards/contra/keymaps/losinggeneration/keymap.c | 40 | ||||
| -rw-r--r-- | keyboards/contra/keymaps/losinggeneration/rules.mk | 17 |
4 files changed, 114 insertions, 0 deletions
diff --git a/keyboards/contra/keymaps/losinggeneration/README.md b/keyboards/contra/keymaps/losinggeneration/README.md new file mode 100644 index 000000000..affd2fb9b --- /dev/null +++ b/keyboards/contra/keymaps/losinggeneration/README.md | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | losinggeneration's Contra Layout | ||
| 2 | ============================ | ||
| 3 | |||
| 4 | This build uses the MIT layout. | ||
| 5 | |||
| 6 | See description of the layout in the common folder | ||
| 7 | [here](../../../../users/losinggeneration/README.md) | ||
| 8 | |||
| 9 | ## Features | ||
| 10 | - Adjust | ||
| 11 | - Removed AGSwap, AGNorm, & Del | ||
| 12 | - Added Caps Lock, F1-F12 in a 4x3 grid, arrow cluster, | ||
| 13 | and layer transitions to the new layers. | ||
| 14 | - Moved Reset & Audio control to the right side | ||
| 15 | |||
| 16 | ## Layouts | ||
| 17 | |||
| 18 | ### Adjust (Lower + Raise) | ||
| 19 | |||
| 20 | ``` | ||
| 21 | ,-----------------------------------------------------------------------------------. | ||
| 22 | | | F1 | F2 | F3 | F4 | | RESET| Game |Numpad|Mouse | |Sleep | | ||
| 23 | |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 24 | | | F5 | F6 | F7 | F8 | | |Qwerty|Colmak|Workmn|Dvorak| | | ||
| 25 | |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 26 | | CAPS | F9 | F10 | F11 | F12 | | | | | | Up | | | ||
| 27 | |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 28 | | | | | | | | | XXX | Left | Down |Right | | ||
| 29 | `-----------------------------------------------------------------------------------' | ||
| 30 | ``` | ||
diff --git a/keyboards/contra/keymaps/losinggeneration/config.h b/keyboards/contra/keymaps/losinggeneration/config.h new file mode 100644 index 000000000..759b1d9a0 --- /dev/null +++ b/keyboards/contra/keymaps/losinggeneration/config.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2017 Danny Nguyen <danny@hexwire.com> | ||
| 3 | Copyright 2018 Harley Laue <losinggeneration@gmail.com> | ||
| 4 | |||
| 5 | This program is free software: you can redistribute it and/or modify | ||
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation, either version 2 of the License, or | ||
| 8 | (at your option) any later version. | ||
| 9 | |||
| 10 | This program is distributed in the hope that it will be useful, | ||
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | GNU General Public License for more details. | ||
| 14 | |||
| 15 | You should have received a copy of the GNU General Public License | ||
| 16 | long with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #ifndef CONFIG_USER_H | ||
| 20 | #define CONFIG_USER_H | ||
| 21 | |||
| 22 | #include QMK_KEYBOARD_CONFIG_H | ||
| 23 | #define USE_MIT_LAYOUT | ||
| 24 | |||
| 25 | #define TAPPING_TERM 250 | ||
| 26 | |||
| 27 | #endif | ||
diff --git a/keyboards/contra/keymaps/losinggeneration/keymap.c b/keyboards/contra/keymaps/losinggeneration/keymap.c new file mode 100644 index 000000000..d4a336c33 --- /dev/null +++ b/keyboards/contra/keymaps/losinggeneration/keymap.c | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | #include "losinggeneration-config.h" | ||
| 3 | #include "losinggeneration-keymap.h" | ||
| 4 | |||
| 5 | extern keymap_config_t keymap_config; | ||
| 6 | |||
| 7 | #define MT_CAPS LSFT_T(KC_CAPS) | ||
| 8 | |||
| 9 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 10 | |||
| 11 | [_QWERTY] = CATMAP( QWERTY_LAYER ), | ||
| 12 | [_COLEMAK] = CATMAP( COLEMAK_LAYER ), | ||
| 13 | [_WORKMAN] = CATMAP( WORKMAN_LAYER ), | ||
| 14 | [_DVORAK] = CATMAP( DVORAK_LAYER ), | ||
| 15 | [_GAME] = CATMAP( GAME_LAYER ), | ||
| 16 | [_NUMPAD] = CATMAP( NUMPAD_LAYER ), | ||
| 17 | [_MOUSE] = CATMAP( MOUSE_LAYER ), | ||
| 18 | [_LOWER] = CATMAP( LOWER_LAYER ), | ||
| 19 | [_RAISE] = CATMAP( RAISE_LAYER ), | ||
| 20 | |||
| 21 | /* Adjust (Lower + Raise) | ||
| 22 | * ,-----------------------------------------------------------------------------------. | ||
| 23 | * | | F1 | F2 | F3 | F4 | | RESET| Game |Numpad|Mouse | |Sleep | | ||
| 24 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 25 | * | | F5 | F6 | F7 | F8 | | |Qwerty|Colmak|Workmn|Dvorak| | | ||
| 26 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 27 | * | CAPS | F9 | F10 | F11 | F12 | | | | | | Up | | | ||
| 28 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 29 | * | | | | | | | | XXX | Left | Down |Right | | ||
| 30 | * `-----------------------------------------------------------------------------------' | ||
| 31 | */ | ||
| 32 | [_ADJUST] = CATMAP( \ | ||
| 33 | _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , _______, RESET , TO_GAME, TO_NUM , TO_MS , _______, KC_SLEP, \ | ||
| 34 | _______, KC_F5 , KC_F6 , KC_F7 , KC_F8 , _______, _______, QWERTY , COLEMAK, WORKMAN, DVORAK , _______, \ | ||
| 35 | MT_CAPS, KC_F9 , KC_F10, KC_F11 , KC_F12 , _______, _______, _______, _______, _______, KC_UP , _______, \ | ||
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, XXXXXXX, KC_LEFT, KC_DOWN, KC_RGHT \ | ||
| 37 | ) | ||
| 38 | |||
| 39 | }; | ||
| 40 | |||
diff --git a/keyboards/contra/keymaps/losinggeneration/rules.mk b/keyboards/contra/keymaps/losinggeneration/rules.mk new file mode 100644 index 000000000..1728afd85 --- /dev/null +++ b/keyboards/contra/keymaps/losinggeneration/rules.mk | |||
| @@ -0,0 +1,17 @@ | |||
| 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 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 6 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 7 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 8 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 9 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 10 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 11 | MIDI_ENABLE = no # MIDI controls | ||
| 12 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 13 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 14 | |||
| 15 | ifndef QUANTUM_DIR | ||
| 16 | include ../../../../Makefile | ||
| 17 | endif | ||
