aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/the_royal/liminal/keymaps
diff options
context:
space:
mode:
authorGravatar Garret G <45295190+TheRoyalSweatshirt@users.noreply.github.com>2020-04-27 16:35:03 -0500
committerGravatar GitHub <noreply@github.com>2020-04-27 14:35:03 -0700
commitc7449b384013fbd9efb8a25ce1d51b73f988a3fb (patch)
treeb2cac19a9dea4fb1760867a05caa879dcbf71b1a /keyboards/the_royal/liminal/keymaps
parent4c51049b2baf4e686c257f21849159a7908c7275 (diff)
downloadqmk_firmware-c7449b384013fbd9efb8a25ce1d51b73f988a3fb.tar.gz
[Keyboard] Add royal directory and add 2 keyboard releases (#8877)
* add royal project folder and 2 released keyboards * fix iso keymap clarification * Apply suggestions from code review * Update keyboards/the_royal/schwann/schwann.h * Update keyboards/the_royal/liminal/liminal.h * Update keyboards/the_royal/schwann/keymaps/default/keymap.c * Apply suggestions from code review new * Update keymap.c * Update keymap.c * Apply suggestions from code review * Update rules.mk * add rules.mk to schwann default * Apply suggestions from code review * add rules.mk to shwann default
Diffstat (limited to 'keyboards/the_royal/liminal/keymaps')
-rw-r--r--keyboards/the_royal/liminal/keymaps/default/config.h6
-rw-r--r--keyboards/the_royal/liminal/keymaps/default/keymap.c161
-rw-r--r--keyboards/the_royal/liminal/keymaps/default/rules.mk1
-rw-r--r--keyboards/the_royal/liminal/keymaps/default_iso/config.h6
-rw-r--r--keyboards/the_royal/liminal/keymaps/default_iso/keymap.c158
-rw-r--r--keyboards/the_royal/liminal/keymaps/default_iso/rules.mk1
6 files changed, 333 insertions, 0 deletions
diff --git a/keyboards/the_royal/liminal/keymaps/default/config.h b/keyboards/the_royal/liminal/keymaps/default/config.h
new file mode 100644
index 000000000..1cfc46c81
--- /dev/null
+++ b/keyboards/the_royal/liminal/keymaps/default/config.h
@@ -0,0 +1,6 @@
+#pragma once
+
+
+#define PERMISSIVE_HOLD
+
+#define TAPPING_TERM_PER_KEY
diff --git a/keyboards/the_royal/liminal/keymaps/default/keymap.c b/keyboards/the_royal/liminal/keymaps/default/keymap.c
new file mode 100644
index 000000000..d9d949745
--- /dev/null
+++ b/keyboards/the_royal/liminal/keymaps/default/keymap.c
@@ -0,0 +1,161 @@
+#include QMK_KEYBOARD_H
+
+enum layer_names {
+ _QWERTY,
+ _LOWER,
+ _RAISE,
+ _OTHER
+};
+
+
+//Tap Dance Declarations
+enum {
+ TD_RST,
+ TD_DBQT
+};
+
+void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) {
+ if (state->count >= 2) {
+ reset_keyboard();
+ reset_tap_dance(state);
+ }
+}
+
+//All tap dance functions would go here. Only showing this one.
+qk_tap_dance_action_t tap_dance_actions[] = {
+ [TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset),
+ [TD_DBQT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOTE, KC_DQT)
+};
+
+enum custom_keycodes {
+ M_PAR = SAFE_RANGE,
+ M_BKT
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) {
+ case M_PAR:
+ if (record->event.pressed) {
+ SEND_STRING("()" SS_TAP(X_LEFT));
+ }
+ break;
+ case M_BKT:
+ if (record->event.pressed) {
+ SEND_STRING("[]" SS_TAP(X_LEFT));
+ }
+ break;
+ }
+ return true;
+
+};
+
+#define OTHER MO(_OTHER)
+#define LOWER MO(_LOWER)
+#define RAISE MO(_RAISE)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* Default layer
+ * ┌─────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬──────┐
+ * │ Esc │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ - │ BsPc │
+ * ├─────┼────┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴──────┤
+ * │PgUp │Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ Enter │
+ * ├─────┼─────┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬────────┤
+ * │PgDn │LShift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Other │
+ * ├─────┼────┬──┴─┬──┴─┬──┴────┴────┴────┴────┴────┴───┬┴────┴┬───┴─┬──────┤
+ * │ END │Del │Gui │Alt │ Right KC = 7u/2.25u │Raise │Menu │ Lower│
+ * └─────┴────┴────┴────┴───────────────────────────────┴──────┴─────┴──────┘
+ */
+ [_QWERTY] = LAYOUT_base_kit_all(
+ KC_ESC, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINUS, KC_BSPC,
+ KC_PGUP, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOTE, KC_ENT,
+ KC_PGDN, KC_LSFT, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, OTHER,
+ KC_END, KC_DEL, KC_LGUI, KC_LALT, LOWER, KC_SPACE, KC_CAPS, RAISE, KC_RGUI, LOWER
+ ),
+
+ /* LOWER layer
+ * ┌─────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬──────┐
+ * │ ` │ │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ _ │ │
+ * ├─────┼────┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴──────┤
+ * │ ~ │ │ ! │ @ │ # │ $ │ % │ ^ │ & │ * │(..)│[..]│ ' and " │
+ * ├─────┼─────┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬────────┤
+ * │ │ │ │ │ │ │ │ │ │ │ │ │ │
+ * ├─────┼────┬──┴─┬──┴─┬──┴────┴────┴────┴────┴────┴───┬┴────┴┬───┴─┬──────┤
+ * │ │ │ │ │ │ │ │ │
+ * └─────┴────┴────┴────┴───────────────────────────────┴──────┴─────┴──────┘
+ */
+ [_LOWER] = LAYOUT_base_kit_all(
+ KC_GRAVE, _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_UNDS, _______,
+ KC_TILD, _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, M_PAR, M_BKT, _______, TD(TD_DBQT),
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
+ ),
+
+ /* RAISE layer
+ * ┌─────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬──────┐
+ * │ \ │ │ │ │ │ │ │ │ │ │ │ │ = │ │
+ * ├─────┼────┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴──────┤
+ * │ | │CAPS │ │ │ │ │ │ │ │ │ │ │ + │
+ * ├─────┼─────┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬────────┤
+ * │ │ │ │ │ │ │ │ │ │ │ [ │ ] │ │
+ * ├─────┼────┬──┴─┬──┴─┬──┴────┴────┴────┴────┴────┴───┬┴────┴┬───┴─┬──────┤
+ * │ │ │ │ │ │ │ │ │
+ * └─────┴────┴────┴────┴───────────────────────────────┴──────┴─────┴──────┘
+ */
+ [_RAISE] = LAYOUT_base_kit_all(
+ KC_BSLS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_EQUAL, _______,
+ KC_PIPE, KC_CAPS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PLUS,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LBRC, KC_RBRC, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
+ ),
+
+ /* OTHER layer
+ * ┌─────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬──────┐
+ * │HOME │ │ │ │ │ │ │ │ │ │ │ UP │ │ │
+ * ├─────┼────┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴──────┤
+ * │END │ │ │ │ │ │ │ │ │ │LEFT│RGHT│ │
+ * ├─────┼─────┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬────────┤
+ * │ │ │ │ │ │ │ │ │ │ │DOWN│ │ │
+ * ├─────┼────┬──┴─┬──┴─┬──┴────┴────┴────┴────┴────┴───┬┴────┴┬───┴─┬──────┤
+ * │RESET│ │ │ │ │ │ │ │
+ * └─────┴────┴────┴────┴───────────────────────────────┴──────┴─────┴──────┘
+ */
+ [_OTHER] = LAYOUT_base_kit_all(
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_RIGHT, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DOWN, _______, _______,
+ TD(TD_RST), _______, _______, _______, _______, _______, _______, _______, _______, _______
+ )
+};
+
+uint16_t get_tapping_term(uint16_t keycode) {
+ switch (keycode) {
+ case LT(_LOWER, KC_SPACE):
+ return 160;
+ case TD(TD_DBQT):
+ return 230;
+ default:
+#ifndef TAPPING_TERM
+ return 200;
+#else
+ return TAPPING_TERM;
+#endif
+ }
+}
+
+layer_state_t layer_state_set_user(layer_state_t state) {
+ switch (get_highest_layer(state)) {
+ case _LOWER:
+ rgblight_setrgb (RGB_CORAL);
+ break;
+ case _RAISE:
+ rgblight_setrgb (RGB_RED);
+ break;
+ case _OTHER:
+ rgblight_setrgb (RGB_BLUE);
+ break;
+ default: // for any other layers, or the default layer
+ rgblight_setrgb (RGB_GREEN);
+ break;
+ }
+ return state;
+}
diff --git a/keyboards/the_royal/liminal/keymaps/default/rules.mk b/keyboards/the_royal/liminal/keymaps/default/rules.mk
new file mode 100644
index 000000000..e5ddcae8d
--- /dev/null
+++ b/keyboards/the_royal/liminal/keymaps/default/rules.mk
@@ -0,0 +1 @@
+TAP_DANCE_ENABLE = yes
diff --git a/keyboards/the_royal/liminal/keymaps/default_iso/config.h b/keyboards/the_royal/liminal/keymaps/default_iso/config.h
new file mode 100644
index 000000000..1cfc46c81
--- /dev/null
+++ b/keyboards/the_royal/liminal/keymaps/default_iso/config.h
@@ -0,0 +1,6 @@
+#pragma once
+
+
+#define PERMISSIVE_HOLD
+
+#define TAPPING_TERM_PER_KEY
diff --git a/keyboards/the_royal/liminal/keymaps/default_iso/keymap.c b/keyboards/the_royal/liminal/keymaps/default_iso/keymap.c
new file mode 100644
index 000000000..3d8debee3
--- /dev/null
+++ b/keyboards/the_royal/liminal/keymaps/default_iso/keymap.c
@@ -0,0 +1,158 @@
+#include QMK_KEYBOARD_H
+
+enum layer_names {
+ _QWERTY,
+ _LOWER,
+ _RAISE,
+ _OTHER
+};
+
+
+//Tap Dance Declarations
+enum {
+ TD_RST,
+ TD_DBQT
+};
+
+void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) {
+ if (state->count >= 2) {
+ reset_keyboard();
+ reset_tap_dance(state);
+ }
+}
+
+//All tap dance functions would go here. Only showing this one.
+qk_tap_dance_action_t tap_dance_actions[] = {
+ [TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset),
+ [TD_DBQT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOTE, KC_DQT)
+};
+
+enum custom_keycodes {
+ M_PAR = SAFE_RANGE,
+ M_BKT
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) {
+ case M_PAR:
+ if (record->event.pressed) {
+ SEND_STRING("()" SS_TAP(X_LEFT));
+ }
+ break;
+ case M_BKT:
+ if (record->event.pressed) {
+ SEND_STRING("[]" SS_TAP(X_LEFT));
+ }
+ break;
+ }
+ return true;
+
+};
+
+#define OTHER MO(_OTHER)
+#define LOWER MO(_LOWER)
+#define RAISE MO(_RAISE)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* Default layer
+ * ┌─────┬────┬─────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬──────┐
+ * │ Esc │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ - │ BkSp │
+ * ├─────┼────┴─┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┐ │
+ * │PgUp │LCtrl │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ │
+ * ├─────┼────┬─┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─────┤
+ * │PgDn │Shft│ \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Other │
+ * ├─────┼────┼───┴┬───┴─┬──┴────┴────┴────┴────┴────┴───┬┴────┴┬───┴─┬──────┤
+ * │ END │Del │Gui │ Alt │ Right KC = 7u/2.25u │Raise │Menu │ Lower│
+ * └─────┴────┴────┴─────┴───────────────────────────────┴──────┴─────┴──────┘
+ */
+ [_QWERTY] = LAYOUT_base_kit_all(
+ KC_ESC, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINUS, KC_BSPC,
+ KC_PGUP, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOTE, KC_ENT,
+ KC_PGDN, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, OTHER,
+ KC_END, KC_DEL, KC_LGUI, KC_LALT, LOWER, KC_SPACE, KC_CAPS, RAISE, KC_MENU, LOWER
+ ),
+
+ /* LOWER layer
+ * ┌─────┬────┬─────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬──────┐
+ * │ ` │ │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ _ │ ENTR │
+ * ├─────┼────┴─┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┐ │
+ * │ ~ │ │ ! │ " │ £ │ $ │ % │ ^ │ & │ * │(..)│ : │ @ │ │
+ * ├─────┼────┬─┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─────┤
+ * │ │ │ \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ │ │
+ * ├─────┼────┼───┴┬───┴─┬──┴────┴────┴────┴────┴────┴───┬┴────┴┬───┴─┬──────┤
+ * │ │ │ │ │ │ │ │ │
+ * └─────┴────┴────┴─────┴───────────────────────────────┴──────┴─────┴──────┘
+ */
+ [_LOWER] = LAYOUT_base_kit_all(
+ KC_GRAVE, _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_UNDS, KC_ENT,
+ KC_TILD, _______, KC_EXLM, LSFT(KC_2), LSFT(KC_3), LSFT(KC_4), KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, M_PAR, KC_COLON, KC_AT, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
+ ),
+
+ /* RAISE layer
+ * ┌─────┬────┬─────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬──────┐
+ * │ │ │ │ │ │ │ │ │ │ │ │ │ = │ + │
+ * ├─────┼────┴─┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┐ │
+ * │ │ CAPS │ │ │ │ │ │ │ │ │ │ │ │ │
+ * ├─────┼────┬─┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─────┤
+ * │ │ │ │ │ │ │ │ │ │ │ │ [ │ ] │ │
+ * ├─────┼────┼───┴┬───┴─┬──┴────┴────┴────┴────┴────┴───┬┴────┴┬───┴─┬──────┤
+ * │ │ │ │ │ │ │ │ │
+ * └─────┴────┴────┴─────┴───────────────────────────────┴──────┴─────┴──────┘
+ */
+ [_RAISE] = LAYOUT_base_kit_all(
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_EQUAL, KC_PLUS,
+ _______, KC_CAPS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LBRC, KC_RBRC, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
+ ),
+
+ /* OTHER layer
+ * ┌─────┬────┬─────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬──────┐
+ * │HOME │ │ │ │ │ │ │ │ │ │ │ │ UP │ │
+ * ├─────┼────┴─┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┐ │
+ * │END │ │ │ │ │ │ │ │ │ │ │LEFT│RGHT│ │
+ * ├─────┼────┬─┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─────┤
+ * │ │ │ │ │ │ │ │ │ │ │ │ │DOWN│ │
+ * ├─────┼────┼───┴┬───┴─┬──┴────┴────┴────┴────┴────┴───┬┴────┴┬───┴─┬──────┤
+ * │RESET│ │ │ │ │ │ │ │
+ * └─────┴────┴────┴─────┴───────────────────────────────┴──────┴─────┴──────┘
+ */
+ [_OTHER] = LAYOUT_base_kit_all(
+ KC_HOME, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______,
+ KC_END, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_RIGHT, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DOWN, _______,
+ TD(TD_RST), _______, _______, _______, _______, _______, _______, _______, _______, _______
+ )
+
+};
+
+uint16_t get_tapping_term(uint16_t keycode) {
+ switch (keycode) {
+ case LT(_LOWER, KC_SPACE):
+ return 160;
+ case TD(TD_DBQT):
+ return 230;
+ default:
+ return 200;
+ }
+}
+
+layer_state_t layer_state_set_user(layer_state_t state) {
+ switch (get_highest_layer(state)) {
+ case _LOWER:
+ rgblight_setrgb (RGB_PURPLE);
+ break;
+ case _RAISE:
+ rgblight_setrgb (RGB_CYAN);
+ break;
+ case _OTHER:
+ rgblight_setrgb (RGB_ORANGE);
+ break;
+ default: // for any other layers, or the default layer
+ rgblight_setrgb (RGB_CORAL);
+ break;
+ }
+ return state;
+}
diff --git a/keyboards/the_royal/liminal/keymaps/default_iso/rules.mk b/keyboards/the_royal/liminal/keymaps/default_iso/rules.mk
new file mode 100644
index 000000000..e5ddcae8d
--- /dev/null
+++ b/keyboards/the_royal/liminal/keymaps/default_iso/rules.mk
@@ -0,0 +1 @@
+TAP_DANCE_ENABLE = yes