diff options
| author | Shaleen Jain <shaleen@jain.sh> | 2018-09-29 21:19:51 +0530 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-09-29 08:49:51 -0700 |
| commit | 1da2f8d5467e5a9b9300437d2afc86d2c1f63370 (patch) | |
| tree | 61609e6afce5c2772129efb5e197e3ac3c91fd90 | |
| parent | 9f8bbe2f3f30c39f1ed44a6a2de63f39b405391f (diff) | |
| download | qmk_firmware-1da2f8d5467e5a9b9300437d2afc86d2c1f63370.tar.gz qmk_firmware-1da2f8d5467e5a9b9300437d2afc86d2c1f63370.zip | |
Keymap: tada68: add shalzz's layout (#4019)
| -rw-r--r-- | keyboards/tada68/keymaps/shalzz/config.h | 4 | ||||
| -rw-r--r-- | keyboards/tada68/keymaps/shalzz/keymap.c | 53 | ||||
| -rw-r--r-- | keyboards/tada68/keymaps/shalzz/readme.md | 43 | ||||
| -rw-r--r-- | keyboards/tada68/keymaps/shalzz/rules.mk | 12 |
4 files changed, 112 insertions, 0 deletions
diff --git a/keyboards/tada68/keymaps/shalzz/config.h b/keyboards/tada68/keymaps/shalzz/config.h new file mode 100644 index 000000000..3214a33fb --- /dev/null +++ b/keyboards/tada68/keymaps/shalzz/config.h | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #define DISABLE_SPACE_CADET_ROLLOVER | ||
| 4 | #define GRAVE_ESC_ALT_OVERRIDE | ||
diff --git a/keyboards/tada68/keymaps/shalzz/keymap.c b/keyboards/tada68/keymaps/shalzz/keymap.c new file mode 100644 index 000000000..e2b4c170e --- /dev/null +++ b/keyboards/tada68/keymaps/shalzz/keymap.c | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | // 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. | ||
| 5 | // 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. | ||
| 7 | #define _BL 0 | ||
| 8 | #define _FL 1 | ||
| 9 | |||
| 10 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 11 | /* Keymap _BL: (Base Layer) Default Layer | ||
| 12 | * ,----------------------------------------------------------------. | ||
| 13 | * |Esc | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |~ ` | | ||
| 14 | * |----------------------------------------------------------------| | ||
| 15 | * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ |Del | | ||
| 16 | * |----------------------------------------------------------------| | ||
| 17 | * |CAPS | A| S| D| F| G| H| J| K| L| ;| '|Return |PgUp| | ||
| 18 | * |----------------------------------------------------------------| | ||
| 19 | * |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift | Up|PgDn| | ||
| 20 | * |----------------------------------------------------------------| | ||
| 21 | * |Ctrl|Win |Alt | Space |FN |Alt|Ctrl|Lef|Dow|Rig | | ||
| 22 | * `----------------------------------------------------------------' | ||
| 23 | * | ||
| 24 | * Note: Shift + Esc = ~ | ||
| 25 | * Win + Esc = ` | ||
| 26 | */ | ||
| 27 | [_BL] = LAYOUT_ansi( | ||
| 28 | KC_GESC, 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_BSPC,KC_GRV, \ | ||
| 29 | 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, \ | ||
| 30 | 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_ENT,KC_PGUP, \ | ||
| 31 | KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSPC,KC_UP,KC_PGDN, \ | ||
| 32 | KC_LCTL, KC_LGUI,KC_LALT, LT(_BL, KC_SPC), MO(_FL),KC_RALT,KC_RCTRL, KC_LEFT,KC_DOWN,KC_RGHT), | ||
| 33 | |||
| 34 | /* Keymap _FL: Function Layer | ||
| 35 | * ,----------------------------------------------------------------. | ||
| 36 | * | | F1|F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12|Del |PRSC| | ||
| 37 | * |----------------------------------------------------------------| | ||
| 38 | * | | |Up | | | | | | | | | | | |Ins | | ||
| 39 | * |----------------------------------------------------------------| | ||
| 40 | * | |<- |Dn | ->| | |<- |Dn |Up | ->| | | |Hme | | ||
| 41 | * |----------------------------------------------------------------| | ||
| 42 | * | ( | | |Bl-|BL |BL+| | |VU-|VU+|MUT| ) | |End | | ||
| 43 | * |----------------------------------------------------------------| | ||
| 44 | * | | | | | | | | | | | | ||
| 45 | * `----------------------------------------------------------------' | ||
| 46 | */ | ||
| 47 | [_FL] = LAYOUT_ansi( | ||
| 48 | _______, 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_DEL, KC_PSCR, \ | ||
| 49 | _______,_______, KC_UP,_______,_______, _______,_______,_______,_______,_______,_______,_______,_______, _______,KC_INS, \ | ||
| 50 | _______,KC_LEFT,KC_DOWN,KC_RIGHT,_______,_______,KC_LEFT,KC_DOWN,KC_UP,KC_RGHT,_______,_______, _______,KC_HOME, \ | ||
| 51 | KC_LPRN,_______,_______,BL_DEC, BL_TOGG,BL_INC, _______,_______,KC_VOLD,KC_VOLU,KC_MUTE,KC_RPRN, _______, KC_END, \ | ||
| 52 | _______,_______,_______, _______, _______,_______,_______,_______,_______, _______), | ||
| 53 | }; | ||
diff --git a/keyboards/tada68/keymaps/shalzz/readme.md b/keyboards/tada68/keymaps/shalzz/readme.md new file mode 100644 index 000000000..3e4cf6067 --- /dev/null +++ b/keyboards/tada68/keymaps/shalzz/readme.md | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | # Shalzz's Unix layout | ||
| 2 | |||
| 3 | This layout is based on the Unix Layout with a few changes. | ||
| 4 | |||
| 5 | ``` | ||
| 6 | Base Layer | ||
| 7 | ,----------------------------------------------------------------. | ||
| 8 | |Esc | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |~ ` | | ||
| 9 | |----------------------------------------------------------------| | ||
| 10 | |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ |Del | | ||
| 11 | |----------------------------------------------------------------| | ||
| 12 | |CAPS | A| S| D| F| G| H| J| K| L| ;| '|Return |PgUp| | ||
| 13 | |----------------------------------------------------------------| | ||
| 14 | |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift | Up|PgDn| | ||
| 15 | |----------------------------------------------------------------| | ||
| 16 | |Ctrl|Win |Alt | Space |Alt| FN|Ctrl|Lef|Dow|Rig | | ||
| 17 | `----------------------------------------------------------------' | ||
| 18 | Note: Shift + Esc = ~ | ||
| 19 | Win + Esc = ` | ||
| 20 | Fn + LShift = ( | ||
| 21 | Fn + RShift = ) | ||
| 22 | |||
| 23 | Fn Layer | ||
| 24 | ,----------------------------------------------------------------. | ||
| 25 | | | F1|F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12|Del |PRSC| | ||
| 26 | |----------------------------------------------------------------| | ||
| 27 | | | |Up | | | | | | | | | | | |Ins | | ||
| 28 | |----------------------------------------------------------------| | ||
| 29 | | |<- |Dn | ->| | |<- |Dn |Up | ->| | | |Hme | | ||
| 30 | |----------------------------------------------------------------| | ||
| 31 | | ( | | |Bl-|BL |BL+| | |VU-|VU+|MUT| ) | |End | | ||
| 32 | |----------------------------------------------------------------| | ||
| 33 | | | | | | | | | | | | | ||
| 34 | `----------------------------------------------------------------' | ||
| 35 | |||
| 36 | ``` | ||
| 37 | |||
| 38 | The changes that were applied over the Unix layout: | ||
| 39 | |||
| 40 | * Left and Right Shift when pressed alone emit `(` and `)` respectively. Hold shift for normal behaviour. | ||
| 41 | * Fn + Left and Right Shift also act as actual `(` and `)` keys respectively. | ||
| 42 | * Changed PrintSc to `Fn+`` | ||
| 43 | * Fixed Holding down space activating the function layer instead of the lower layer. | ||
diff --git a/keyboards/tada68/keymaps/shalzz/rules.mk b/keyboards/tada68/keymaps/shalzz/rules.mk new file mode 100644 index 000000000..1df3af955 --- /dev/null +++ b/keyboards/tada68/keymaps/shalzz/rules.mk | |||
| @@ -0,0 +1,12 @@ | |||
| 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 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 6 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 7 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 8 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 9 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 10 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 11 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 12 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | ||
