summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkifinnsson <kifinnsson@gmail.com>2018-02-01 23:22:37 -0700
committerJack Humbert <jack.humb@gmail.com>2018-02-02 01:22:37 -0500
commit042a450e24ad84c4a08b9e5435f97fe7bbd653a4 (patch)
tree4302c97e89fd0534cd0c737fbd0b7b17c0fdf5cd
parent2cf6bfe9ac10663181aa3ba32087da956bb7ec1e (diff)
downloadqmk_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
-rw-r--r--keyboards/miuni32/keymaps/ki/config.h8
-rw-r--r--keyboards/miuni32/keymaps/ki/keymap.c149
-rw-r--r--keyboards/miuni32/keymaps/ki/readme.md4
-rw-r--r--keyboards/miuni32/keymaps/ki/rules.mk21
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 0000000000..df06a26206
--- /dev/null
+++ b/keyboards/miuni32/keymaps/ki/config.h
@@ -0,0 +1,8 @@
+#ifndef CONFIG_USER_H
+#define CONFIG_USER_H
+
+#include "../../config.h"
+
+// place overrides here
+
+#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 0000000000..1df93b0811
--- /dev/null
+++ b/keyboards/miuni32/keymaps/ki/keymap.c
@@ -0,0 +1,149 @@
+#include "miuni32.h"
+#include "action_layer.h"
+
+enum miuni32_layers {
+ _BEAKL,
+ _LOWER,
+ _RAISE,
+ _UNION
+};
+
+enum miuni32_keycodes {
+ BEAKL = SAFE_RANGE,
+ LOWER,
+ RAISE
+};
+
+#define SPC_SHF SFT_T(KC_SPC)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* Level 0: BEAKL
+ * ,---------------------------------------------------------------------------------------.
+ * | J | H | O | U | K | LOWER | G | C | R | F | Z |
+ * |---------------------------------------------------------------------------------------|
+ * | Q | I | E | A | Y | RAISE | D | S | T | N | B |
+ * |---------------------------------------------------------------------------------------|
+ * | / | , | ' | . | X |SPC\SHF| W | M | L | P | V |
+ * |---------------------------------------------------------------------------------------|
+ */
+ [_BEAKL] ={
+ {KC_J, KC_H, KC_O, KC_U, KC_K, KC_NO, KC_G, KC_C, KC_R, KC_F, KC_Z},
+ {KC_Q, KC_I, KC_E, KC_A, KC_Y, RAISE, KC_D, KC_S, KC_T, KC_N, KC_B},
+ {KC_SLSH, KC_COMM, KC_QUOT, KC_DOT, KC_X, SPC_SHF, KC_W, KC_M, KC_L, KC_P, KC_V}
+ },
+ /* Lower
+ * ,---------------------------------------------------------------------------------------.
+ * | Tab | { | _ | } | & | | Gui | [ | % | ] | Bkspc |
+ * |---------------------------------------------------------------------------------------|
+ * | \ | ( | 1 | ) | # | | $ | < | 0 | > | | |
+ * |---------------------------------------------------------------------------------------|
+ * | 5 | 4 | 3 | 2 | Ctl | | Alt | 9 | 8 | 7 | 6 |
+ * |---------------------------------------------------------------------------------------|
+ */
+ [_LOWER] ={
+ {KC_TAB, KC_LCBR, KC_UNDS, KC_RBRC, KC_AMPR, _______, KC_RGUI, KC_LBRC, KC_PERC, KC_RBRC, KC_BSPC},
+ {KC_BSLS, KC_LPRN, KC_1, KC_RPRN, KC_HASH, _______, KC_DLR, KC_LT, KC_0, KC_GT, KC_PIPE},
+ {KC_5, KC_4, KC_3, KC_2, KC_LCTL, _______, KC_RALT, KC_9, KC_8, KC_7, KC_6}
+ },
+ /* Raise
+ * ,---------------------------------------------------------------------------------------.
+ * | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 |
+ * |---------------------------------------------------------------------------------------|
+ * | F11 | F12 | ! | - | + | | = | ; | ) | ` | ? |
+ * |------------------------------- -------------------------------------------------------|
+ * | % | $ | # | @ | | | | ( | * | & | ^ |
+ * |---------------------------------------------------------------------------------------|
+ */
+ [_RAISE] ={
+ {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_EXLM, KC_MINS, KC_PLUS, _______, KC_EQL, KC_SCLN, KC_RPRN, KC_GRV, KC_QUES},
+ {KC_PERC, KC_DLR, KC_HASH, KC_AT, _______, _______, _______, KC_LPRN, KC_ASTR, KC_AMPR, KC_CIRC}
+ },
+ /* Union
+ * ,---------------------------------------------------------------------------------------.
+ * | RESET | | | | | | | | | | Del |
+ * |---------------------------------------------------------------------------------------|
+ * | | | | | | | | | | | |
+ * |---------------------------------------------------------------------------------------|
+ * | | | | | | | | | | | |
+ * |---------------------------------------------------------------------------------------|
+ */
+ [_UNION] ={
+ {RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL},
+ {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______},
+ {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
+ }
+};
+
+void matrix_init_user(void) {
+}
+
+void matrix_scan_user(void) {
+}
+
+//planck like tri layer
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) {
+ case BEAKL:
+ if (record->event.pressed) {
+ set_single_persistent_default_layer(_BEAKL);
+ }
+ return false;
+ break;
+ case LOWER:
+ if (record->event.pressed) {
+ layer_on(_LOWER);
+ update_tri_layer(_LOWER, _RAISE, _UNION);
+ } else {
+ layer_off(_LOWER);
+ update_tri_layer(_LOWER, _RAISE, _UNION);
+ }
+ return false;
+ break;
+ case RAISE:
+ if (record->event.pressed) {
+ layer_on(_RAISE);
+ update_tri_layer(_LOWER, _RAISE, _UNION);
+ } else {
+ layer_off(_RAISE);
+ update_tri_layer(_LOWER, _RAISE, _UNION);
+ }
+ return false;
+ break;
+ }
+ return true;
+}
+
+void led_set_user(uint8_t usb_led) {
+
+ if (usb_led & (1 << USB_LED_NUM_LOCK)) {
+
+ } else {
+
+ }
+
+ if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
+
+ } else {
+
+ }
+
+ if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
+
+ } else {
+
+ }
+
+ if (usb_led & (1 << USB_LED_COMPOSE)) {
+
+ } else {
+
+ }
+
+ if (usb_led & (1 << USB_LED_KANA)) {
+
+ } else {
+
+ }
+
+}
diff --git a/keyboards/miuni32/keymaps/ki/readme.md b/keyboards/miuni32/keymaps/ki/readme.md
new file mode 100644
index 0000000000..7615d1c6ad
--- /dev/null
+++ b/keyboards/miuni32/keymaps/ki/readme.md
@@ -0,0 +1,4 @@
+# A BEAKL9-ish keymap for miuni32
+A major WIP
+Using planck like tri layer switching with a single center control column
+No mousekey support
diff --git a/keyboards/miuni32/keymaps/ki/rules.mk b/keyboards/miuni32/keymaps/ki/rules.mk
new file mode 100644
index 0000000000..8a72a6e4e7
--- /dev/null
+++ b/keyboards/miuni32/keymaps/ki/rules.mk
@@ -0,0 +1,21 @@
+# Build Options
+# change to "no" to disable the options, or define them in the Makefile in
+# the appropriate keymap folder that will get included automatically
+#
+BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
+MOUSEKEY_ENABLE = no # Mouse keys(+4700)
+EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
+CONSOLE_ENABLE = no # Console for debug(+400)
+COMMAND_ENABLE = yes # Commands for debug and configuration
+NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+MIDI_ENABLE = no # MIDI controls
+AUDIO_ENABLE = no # Audio output on port C6
+UNICODE_ENABLE = no # Unicode
+BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
+RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
+SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
+
+ifndef QUANTUM_DIR
+ include ../../../../Makefile
+endif