diff options
| author | kifinnsson <kifinnsson@gmail.com> | 2018-02-01 23:22:37 -0700 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2018-02-02 01:22:37 -0500 |
| commit | 042a450e24ad84c4a08b9e5435f97fe7bbd653a4 (patch) | |
| tree | 4302c97e89fd0534cd0c737fbd0b7b17c0fdf5cd /keyboards | |
| parent | 2cf6bfe9ac10663181aa3ba32087da956bb7ec1e (diff) | |
| download | qmk_firmware-042a450e24ad84c4a08b9e5435f97fe7bbd653a4.tar.gz qmk_firmware-042a450e24ad84c4a08b9e5435f97fe7bbd653a4.zip | |
Personal BEAKL9 based keymap (#2304)
* Adding personal BEAKL9 based keymap
Initial commit, very much a WIP/Proof of concept.
* Updating personal BEAKL9 based layout
* F-keys added to upper layer
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/miuni32/keymaps/ki/config.h | 8 | ||||
| -rw-r--r-- | keyboards/miuni32/keymaps/ki/keymap.c | 149 | ||||
| -rw-r--r-- | keyboards/miuni32/keymaps/ki/readme.md | 4 | ||||
| -rw-r--r-- | keyboards/miuni32/keymaps/ki/rules.mk | 21 |
4 files changed, 182 insertions, 0 deletions
diff --git a/keyboards/miuni32/keymaps/ki/config.h b/keyboards/miuni32/keymaps/ki/config.h new file mode 100644 index 000000000..df06a2620 --- /dev/null +++ b/keyboards/miuni32/keymaps/ki/config.h | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #ifndef CONFIG_USER_H | ||
| 2 | #define CONFIG_USER_H | ||
| 3 | |||
| 4 | #include "../../config.h" | ||
| 5 | |||
| 6 | // place overrides here | ||
| 7 | |||
| 8 | #endif \ No newline at end of file | ||
diff --git a/keyboards/miuni32/keymaps/ki/keymap.c b/keyboards/miuni32/keymaps/ki/keymap.c new file mode 100644 index 000000000..1df93b081 --- /dev/null +++ b/keyboards/miuni32/keymaps/ki/keymap.c | |||
| @@ -0,0 +1,149 @@ | |||
| 1 | #include "miuni32.h" | ||
| 2 | #include "action_layer.h" | ||
| 3 | |||
| 4 | enum miuni32_layers { | ||
| 5 | _BEAKL, | ||
| 6 | _LOWER, | ||
| 7 | _RAISE, | ||
| 8 | _UNION | ||
| 9 | }; | ||
| 10 | |||
| 11 | enum miuni32_keycodes { | ||
| 12 | BEAKL = SAFE_RANGE, | ||
| 13 | LOWER, | ||
| 14 | RAISE | ||
| 15 | }; | ||
| 16 | |||
| 17 | #define SPC_SHF SFT_T(KC_SPC) | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | /* Level 0: BEAKL | ||
| 21 | * ,---------------------------------------------------------------------------------------. | ||
| 22 | * | J | H | O | U | K | LOWER | G | C | R | F | Z | | ||
| 23 | * |---------------------------------------------------------------------------------------| | ||
| 24 | * | Q | I | E | A | Y | RAISE | D | S | T | N | B | | ||
| 25 | * |---------------------------------------------------------------------------------------| | ||
| 26 | * | / | , | ' | . | X |SPC\SHF| W | M | L | P | V | | ||
| 27 | * |---------------------------------------------------------------------------------------| | ||
| 28 | */ | ||
| 29 | [_BEAKL] ={ | ||
| 30 | {KC_J, KC_H, KC_O, KC_U, KC_K, KC_NO, KC_G, KC_C, KC_R, KC_F, KC_Z}, | ||
| 31 | {KC_Q, KC_I, KC_E, KC_A, KC_Y, RAISE, KC_D, KC_S, KC_T, KC_N, KC_B}, | ||
| 32 | {KC_SLSH, KC_COMM, KC_QUOT, KC_DOT, KC_X, SPC_SHF, KC_W, KC_M, KC_L, KC_P, KC_V} | ||
| 33 | }, | ||
| 34 | /* Lower | ||
| 35 | * ,---------------------------------------------------------------------------------------. | ||
| 36 | * | Tab | { | _ | } | & | | Gui | [ | % | ] | Bkspc | | ||
| 37 | * |---------------------------------------------------------------------------------------| | ||
| 38 | * | \ | ( | 1 | ) | # | | $ | < | 0 | > | | | | ||
| 39 | * |---------------------------------------------------------------------------------------| | ||
| 40 | * | 5 | 4 | 3 | 2 | Ctl | | Alt | 9 | 8 | 7 | 6 | | ||
| 41 | * |---------------------------------------------------------------------------------------| | ||
| 42 | */ | ||
| 43 | [_LOWER] ={ | ||
| 44 | {KC_TAB, KC_LCBR, KC_UNDS, KC_RBRC, KC_AMPR, _______, KC_RGUI, KC_LBRC, KC_PERC, KC_RBRC, KC_BSPC}, | ||
| 45 | {KC_BSLS, KC_LPRN, KC_1, KC_RPRN, KC_HASH, _______, KC_DLR, KC_LT, KC_0, KC_GT, KC_PIPE}, | ||
| 46 | {KC_5, KC_4, KC_3, KC_2, KC_LCTL, _______, KC_RALT, KC_9, KC_8, KC_7, KC_6} | ||
| 47 | }, | ||
| 48 | /* Raise | ||
| 49 | * ,---------------------------------------------------------------------------------------. | ||
| 50 | * | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | | ||
| 51 | * |---------------------------------------------------------------------------------------| | ||
| 52 | * | F11 | F12 | ! | - | + | | = | ; | ) | ` | ? | | ||
| 53 | * |------------------------------- -------------------------------------------------------| | ||
| 54 | * | % | $ | # | @ | | | | ( | * | & | ^ | | ||
| 55 | * |---------------------------------------------------------------------------------------| | ||
| 56 | */ | ||
| 57 | [_RAISE] ={ | ||
| 58 | {KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10}, | ||
| 59 | {KC_F11, KC_F12, KC_EXLM, KC_MINS, KC_PLUS, _______, KC_EQL, KC_SCLN, KC_RPRN, KC_GRV, KC_QUES}, | ||
| 60 | {KC_PERC, KC_DLR, KC_HASH, KC_AT, _______, _______, _______, KC_LPRN, KC_ASTR, KC_AMPR, KC_CIRC} | ||
| 61 | }, | ||
| 62 | /* Union | ||
| 63 | * ,---------------------------------------------------------------------------------------. | ||
| 64 | * | RESET | | | | | | | | | | Del | | ||
| 65 | * |---------------------------------------------------------------------------------------| | ||
| 66 | * | | | | | | | | | | | | | ||
| 67 | * |---------------------------------------------------------------------------------------| | ||
| 68 | * | | | | | | | | | | | | | ||
| 69 | * |---------------------------------------------------------------------------------------| | ||
| 70 | */ | ||
| 71 | [_UNION] ={ | ||
| 72 | {RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL}, | ||
| 73 | {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}, | ||
| 74 | {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______} | ||
| 75 | } | ||
| 76 | }; | ||
| 77 | |||
| 78 | void matrix_init_user(void) { | ||
| 79 | } | ||
| 80 | |||
| 81 | void matrix_scan_user(void) { | ||
| 82 | } | ||
| 83 | |||
| 84 | //planck like tri layer | ||
| 85 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 86 | switch (keycode) { | ||
| 87 | case BEAKL: | ||
| 88 | if (record->event.pressed) { | ||
| 89 | set_single_persistent_default_layer(_BEAKL); | ||
| 90 | } | ||
| 91 | return false; | ||
| 92 | break; | ||
| 93 | case LOWER: | ||
| 94 | if (record->event.pressed) { | ||
| 95 | layer_on(_LOWER); | ||
| 96 | update_tri_layer(_LOWER, _RAISE, _UNION); | ||
| 97 | } else { | ||
| 98 | layer_off(_LOWER); | ||
| 99 | update_tri_layer(_LOWER, _RAISE, _UNION); | ||
| 100 | } | ||
| 101 | return false; | ||
| 102 | break; | ||
| 103 | case RAISE: | ||
| 104 | if (record->event.pressed) { | ||
| 105 | layer_on(_RAISE); | ||
| 106 | update_tri_layer(_LOWER, _RAISE, _UNION); | ||
| 107 | } else { | ||
| 108 | layer_off(_RAISE); | ||
| 109 | update_tri_layer(_LOWER, _RAISE, _UNION); | ||
| 110 | } | ||
| 111 | return false; | ||
| 112 | break; | ||
| 113 | } | ||
| 114 | return true; | ||
| 115 | } | ||
| 116 | |||
| 117 | void led_set_user(uint8_t usb_led) { | ||
| 118 | |||
| 119 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 120 | |||
| 121 | } else { | ||
| 122 | |||
| 123 | } | ||
| 124 | |||
| 125 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 126 | |||
| 127 | } else { | ||
| 128 | |||
| 129 | } | ||
| 130 | |||
| 131 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 132 | |||
| 133 | } else { | ||
| 134 | |||
| 135 | } | ||
| 136 | |||
| 137 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 138 | |||
| 139 | } else { | ||
| 140 | |||
| 141 | } | ||
| 142 | |||
| 143 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 144 | |||
| 145 | } else { | ||
| 146 | |||
| 147 | } | ||
| 148 | |||
| 149 | } | ||
diff --git a/keyboards/miuni32/keymaps/ki/readme.md b/keyboards/miuni32/keymaps/ki/readme.md new file mode 100644 index 000000000..7615d1c6a --- /dev/null +++ b/keyboards/miuni32/keymaps/ki/readme.md | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | # A BEAKL9-ish keymap for miuni32 | ||
| 2 | A major WIP | ||
| 3 | Using planck like tri layer switching with a single center control column | ||
| 4 | No mousekey support | ||
diff --git a/keyboards/miuni32/keymaps/ki/rules.mk b/keyboards/miuni32/keymaps/ki/rules.mk new file mode 100644 index 000000000..8a72a6e4e --- /dev/null +++ b/keyboards/miuni32/keymaps/ki/rules.mk | |||
| @@ -0,0 +1,21 @@ | |||
| 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(+1000) | ||
| 6 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 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 = no # 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. Do not enable this with audio at the same time. | ||
| 17 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 18 | |||
| 19 | ifndef QUANTUM_DIR | ||
| 20 | include ../../../../Makefile | ||
| 21 | endif | ||
