diff options
| author | Adam Perlman <aperlman@me.com> | 2019-10-21 23:37:33 -0400 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-10-21 20:37:33 -0700 |
| commit | 0ab8edb5237ef5a6aeab18c57643e01c7bf2da0a (patch) | |
| tree | 52eaa78799eb90e8e8ec8e8278e5d2fac8e4e90a /users/rishka | |
| parent | 80ded60cad8d7ec8b46f5e3acd7948275ead5f2e (diff) | |
| download | qmk_firmware-0ab8edb5237ef5a6aeab18c57643e01c7bf2da0a.tar.gz qmk_firmware-0ab8edb5237ef5a6aeab18c57643e01c7bf2da0a.zip | |
[Keymap] Ergodox EZ and dactyl-manuform keymaps for rishka (#7051)
* Setup keymaps and userspace for Rishka
* Creates a keymap for Ergodox Ez, bdn9 and Dactyl Manuform 5x6
* Update bdn9 config with suggested change
* Add pragma to other header files
* Apply suggestions from code review
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Updates from review from fauxpark
* Updates from review
Swap to keyboard_post_init, layer_state_t and use layer state for encoder
* Updates from review
Swap to keyboard_post_init, layer_state_t and use layer state for encoder
* Add missing change from review
Diffstat (limited to 'users/rishka')
| -rw-r--r-- | users/rishka/rishka.c | 1 | ||||
| -rw-r--r-- | users/rishka/rishka.h | 74 | ||||
| -rw-r--r-- | users/rishka/rules.mk | 1 |
3 files changed, 76 insertions, 0 deletions
diff --git a/users/rishka/rishka.c b/users/rishka/rishka.c new file mode 100644 index 000000000..c988072d6 --- /dev/null +++ b/users/rishka/rishka.c | |||
| @@ -0,0 +1 @@ | |||
| #include "rishka.h" | |||
diff --git a/users/rishka/rishka.h b/users/rishka/rishka.h new file mode 100644 index 000000000..96915993d --- /dev/null +++ b/users/rishka/rishka.h | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #if (!defined(LAYOUT) && defined(KEYMAP)) | ||
| 4 | # define LAYOUT KEYMAP | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #undef MK_MOMENTARY_ACCEL | ||
| 8 | #define MK_3_SPEED 1 | ||
| 9 | |||
| 10 | #define LAYOUT_ergodox_pretty_wrapper(...) LAYOUT_ergodox_pretty(__VA_ARGS__) | ||
| 11 | #define LAYOUT_wrapper(...) LAYOUT(__VA_ARGS__) | ||
| 12 | #define LAYOUT_5x6_wrapper(...) LAYOUT_5x6(__VA_ARGS__) | ||
| 13 | #define KC_MLSF OSM(MOD_LSFT) | ||
| 14 | #define KC_MRSF OSM(MOD_RSFT) | ||
| 15 | |||
| 16 | #define OS_LGUI OSM(MOD_LGUI) | ||
| 17 | #define OS_RGUI OSM(MOD_RGUI) | ||
| 18 | #define OS_LSFT OSM(MOD_LSFT) | ||
| 19 | #define OS_RSFT OSM(MOD_RSFT) | ||
| 20 | #define OS_LCTL OSM(MOD_LCTL) | ||
| 21 | #define OS_RCTL OSM(MOD_RCTL) | ||
| 22 | #define OS_LALT OSM(MOD_LALT) | ||
| 23 | #define OS_RALT OSM(MOD_RALT) | ||
| 24 | #define OS_MEH OSM(MOD_MEH) | ||
| 25 | #define OS_HYPR OSM(MOD_HYPR) | ||
| 26 | #define MOUSE_L LSFT(KC_WH_D) | ||
| 27 | #define MOUSE_R LSFT(KC_WH_U) | ||
| 28 | #define OSX_LOCK LCTL(LGUI(KC_Q)) | ||
| 29 | |||
| 30 | // layout parts for easy reuse between keyboard keymaps | ||
| 31 | // ,-----+-----+-----+-----+-----, ,-----+-----+-----+-----+-----, | ||
| 32 | // | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | | ||
| 33 | // ,-----+-----+-----+-----+-----, ,-----+-----+-----+-----+-----, | ||
| 34 | #define ________________NUMBERS_L__________________ KC_1, KC_2, KC_3, KC_4, KC_5 | ||
| 35 | #define ________________NUMBERS_R__________________ KC_6, KC_7, KC_8, KC_9, KC_0 | ||
| 36 | |||
| 37 | // ,-----+-----+-----+-----+-----, ,-----+-----+-----+-----+-----, | ||
| 38 | // | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | | ||
| 39 | // ,-----+-----+-----+-----+-----, ,-----+-----+-----+-----+-----, | ||
| 40 | #define ______________________F_L__________________ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5 | ||
| 41 | #define ______________________F_R__________________ KC_F6, KC_F7, KC_F8, KC_F9, KC_F10 | ||
| 42 | |||
| 43 | // ,-----+-----+-----+-----+-----, ,-----+-----+-----+-----+-----, | ||
| 44 | // | Q | W | E | R | T | | Y | U | I | O | P | | ||
| 45 | // ,-----+-----+-----x-----x-----, ,-----x-----x-----+-----+-----, | ||
| 46 | // | A | S | D | F | G | | H | J | K | L | ; | | ||
| 47 | // ,-----+-----+-----x-----x-----, ,-----x-----x-----+-----+-----, | ||
| 48 | // | Z | X | C | V | B | | N | M | , | . | / | | ||
| 49 | // ,-----+-----+-----+-----+-----, ,-----+-----+-----+-----+-----, | ||
| 50 | #define _________________QWERTY_L1_________________ KC_Q , KC_W , KC_E , KC_R , KC_T | ||
| 51 | #define _________________QWERTY_L2_________________ KC_A , KC_S , KC_D , KC_F , KC_G | ||
| 52 | #define _________________QWERTY_L3_________________ KC_Z , KC_X , KC_C , KC_V , KC_B | ||
| 53 | |||
| 54 | #define _________________QWERTY_R1_________________ KC_Y , KC_U , KC_I , KC_O , KC_P | ||
| 55 | #define _________________QWERTY_R2_________________ KC_H , KC_J , KC_K , KC_L , KC_SCLN | ||
| 56 | #define _________________QWERTY_R3_________________ KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH | ||
| 57 | |||
| 58 | #define _____________MOD_QWERTY_L2_________________ CTL_T(KC_A), SFT_T(KC_S), GUI_T(KC_D), ALT_T(KC_F), KC_G | ||
| 59 | #define _____________MOD_QWERTY_R2_________________ KC_H , ALT_T(KC_J), GUI_T(KC_K), SFT_T(KC_L), CTL_T(KC_SCLN) | ||
| 60 | |||
| 61 | // ,-----+-----+-----+-----+-----, ,-----+-----+-----+-----+-----, | ||
| 62 | // | ! | @ | { | } | _ | | \ | 7 | 8 | 9 | | | ||
| 63 | // ,-----+-----+-----x-----x-----, ,-----x-----x-----+-----+-----, | ||
| 64 | // | # | $ | ( | ) | - | | = | 4 | 5 | 6 | | | | ||
| 65 | // ,-----+-----+-----x-----x-----, ,-----x-----x-----+-----+-----, | ||
| 66 | // | % | ^ | [ | ] | + | | * | 1 | 2 | 3 | / | | ||
| 67 | // ,-----+-----+-----+-----+-----, ,-----+-----+-----+-----+-----, | ||
| 68 | #define _________________SYMBOL_L1_________________ KC_EXLM, KC_AT , KC_LCBR, KC_RCBR, KC_UNDS | ||
| 69 | #define _________________SYMBOL_L2_________________ KC_HASH, KC_DLR , KC_LPRN, KC_RPRN, KC_MINS | ||
| 70 | #define _________________SYMBOL_L3_________________ KC_PERC, KC_CIRC, KC_LBRC, KC_RBRC, KC_PLUS | ||
| 71 | |||
| 72 | #define _________________SYMBOL_R1_________________ KC_BSLS, KC_P7, KC_P8 , KC_P9, KC_PAST | ||
| 73 | #define _________________SYMBOL_R2_________________ KC_EQL , KC_P4, KC_P5, KC_P6, KC_PPLS | ||
| 74 | #define _________________SYMBOL_R3_________________ KC_ASTR, KC_P1, KC_P2, KC_P3, KC_PMNS | ||
diff --git a/users/rishka/rules.mk b/users/rishka/rules.mk new file mode 100644 index 000000000..a0b8e5847 --- /dev/null +++ b/users/rishka/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| SRC += rishka.c | |||
