summaryrefslogtreecommitdiff
path: root/keyboards/40percentclub
diff options
context:
space:
mode:
authorwyethGR <48162735+wyethGR@users.noreply.github.com>2022-01-28 15:33:26 -0800
committerGitHub <noreply@github.com>2022-01-28 15:33:26 -0800
commitdb56db2f798a83a7736fc7681c1fb58070dd7511 (patch)
tree544ed7e8bfe7e71e34ea0d16d49a0afe585cd22f /keyboards/40percentclub
parent0f0e90971b6da2b1a125acc1620c3d33d0f1864c (diff)
[Keymap] Added personal 36 key layout for 40percentclub's nori (#15980)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/40percentclub')
-rw-r--r--keyboards/40percentclub/nori/keymaps/wings_36key/config.h27
-rw-r--r--keyboards/40percentclub/nori/keymaps/wings_36key/keymap.c118
-rw-r--r--keyboards/40percentclub/nori/keymaps/wings_36key/readme.md3
-rw-r--r--keyboards/40percentclub/nori/keymaps/wings_36key/rules.mk1
4 files changed, 149 insertions, 0 deletions
diff --git a/keyboards/40percentclub/nori/keymaps/wings_36key/config.h b/keyboards/40percentclub/nori/keymaps/wings_36key/config.h
new file mode 100644
index 0000000000..eacfacc5a7
--- /dev/null
+++ b/keyboards/40percentclub/nori/keymaps/wings_36key/config.h
@@ -0,0 +1,27 @@
+/* Copyright 2018
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#define IGNORE_MOD_TAP_INTERRUPT // MT key must be held longer than tapping term for
+ // modifer to be registered
+#define RETRO_TAPPING_PER_KEY
+#define TAPPING_TERM_PER_KEY
+
+#define COMBO_COUNT 2 // number of combos used
+#define COMBO_TERM 40 // time out for combos in ms
+#define TAPPING_TERM 200 // time out for tap-hold in ms
+
diff --git a/keyboards/40percentclub/nori/keymaps/wings_36key/keymap.c b/keyboards/40percentclub/nori/keymaps/wings_36key/keymap.c
new file mode 100644
index 0000000000..7d9d516590
--- /dev/null
+++ b/keyboards/40percentclub/nori/keymaps/wings_36key/keymap.c
@@ -0,0 +1,118 @@
+#include QMK_KEYBOARD_H
+
+// Each layer gets a name for readability, which is then used in the keymap matrix below.
+// The underscores don't mean anything - you can have a layer called STUFF or any other name.
+// Layer names don't all need to be of the same length, obviously, and you can also skip them
+// entirely and just use numbers.
+enum custom_layers {
+ _QWERTY,
+ _LOWER,
+ _RAISE,
+ _ADJUST,
+};
+
+#define LOWER MO(_LOWER)
+#define RAISE MO(_RAISE)
+
+#define _ESC MT(MOD_LGUI, KC_ESC) // escape on tap, gui on hold
+#define _SFT MT(MOD_LSFT, KC_ENT) // enter on tap, shift on hold
+#define _SPC MT(MOD_LCTL, KC_SPC) // space on tap, ctrl on hold
+
+const uint16_t PROGMEM df_tab[] = {KC_D, KC_F, COMBO_END};
+const uint16_t PROGMEM jk_alt[] = {KC_J, KC_K, COMBO_END};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+/* Qwerty
+ * .-----------------------------------------------------------------------------------.
+ * | Q | W | E | R | T | | | Y | U | I | O | P |
+ * +------+------+------+------+-------------+------+------+------+------+------+------+
+ * | A | S | D | F | G | | | H | J | K | L | : ; |
+ * +------+------+------+------+------|------+------+------+------+------+------+------+
+ * | Z | X | C | V | B | | | N | M | < , | > . | ? / |
+ * +------+------+------+------+------+------+------+------+------+------+------+------+
+ * | | | Esc |Enter |Raise | | |Lower |Space |Delete| | |
+ * .-----------------------------------------------------------------------------------.
+ * esc on tap, gui on hold
+ * enter on tap, shift on hold
+ * space on tap, ctl on hold
+ */
+[_QWERTY] = LAYOUT_ortho_4x12(
+ KC_Q, KC_W, KC_E, KC_R, KC_T, XXXXXXX, XXXXXXX, KC_Y, KC_U, KC_I, KC_O, KC_P,
+ KC_A, KC_S, KC_D, KC_F, KC_G, XXXXXXX, XXXXXXX, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
+ KC_Z, KC_X, KC_C, KC_V, KC_B, XXXXXXX, XXXXXXX, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
+ XXXXXXX, XXXXXXX, _ESC, _SFT, RAISE, XXXXXXX, XXXXXXX, LOWER, _SPC, KC_BSPC, XXXXXXX, XXXXXXX
+),
+
+/* Lower
+ * ,-----------------------------------------------------------------------------------.
+ * | ` | ! | @ | # | $ | | | % | ^ | & | * | \ |
+ * |------+------+------+------+------+------+------+------+------+------+------+------|
+ * | ~ | | | [ | ] | { | | | } | ( | ) | " | ' |
+ * |------+------+------+------+------+------+------+------+------+------+------+------|
+ * | | | | | | | |Shift | + | = | - | _ |
+ * |------+------+------+------+------+------+------+------+------+------+------+------|
+ * | | | | |RAISE | | | | | | | |
+ * `-----------------------------------------------------------------------------------'
+ */
+[_LOWER] = LAYOUT_ortho_4x12(
+ KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, XXXXXXX, XXXXXXX, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_BSLS,
+ KC_TILD, KC_PIPE, KC_LBRC, KC_RBRC, KC_LCBR, XXXXXXX, XXXXXXX, KC_RCBR, KC_LPRN, KC_RPRN, KC_DQUO, KC_QUOT,
+ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LSFT, KC_PLUS, KC_EQL, KC_MINS, KC_UNDS,
+ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RAISE, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
+),
+
+/* Raise
+ * ,-----------------------------------------------------------------------------------.
+ * | 1 | 2 | 3 | 4 | 5 | | | 6 | 7 | 8 | 9 | 0 |
+ * |------+------+------+------+------+------+------+------+------+------+------+------|
+ * | F1 | F2 | F3 | F4 | F5 | | | | GUI | SFT | CTL | ALT |
+ * |------+------+------+------+------+------+------+------+------+------+------+------|
+ * | F6 | F7 | F8 | F9 | F10 | | | F11 | F12 | | | Esc |
+ * |------+------+------+------+------+------+------+------+------+------+------+------|
+ * | | | | | | | |Lower |Space |Delete| | |
+ * `-----------------------------------------------------------------------------------'
+ */
+[_RAISE] = LAYOUT_ortho_4x12(
+ KC_1, KC_2, KC_3, KC_4, KC_5, XXXXXXX, XXXXXXX, KC_6, KC_7, KC_8, KC_9, KC_0,
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, XXXXXXX, XXXXXXX, XXXXXXX, KC_LGUI, KC_LSFT, KC_LCTL, KC_LALT,
+ KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, XXXXXXX, XXXXXXX, KC_F11, KC_F12, XXXXXXX, XXXXXXX, KC_ESC,
+ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, LOWER, _SPC, KC_BSPC, XXXXXXX, XXXXXXX
+),
+
+/* Adjust (Lower + Raise)
+ * ,-----------------------------------------------------------------------------------.
+ * |PntSrn| | | PgUp |BrtUp | | | Mute |VolDw |VolUp |Ply/Ps|RESET |
+ * |------+------+------+------+------+------|------+------+------+------+------+------|
+ * | | | | PgDw |BrtDw | | | Left | Down | Up |Right | |
+ * |------+------+------+------+------+------|------+------+------+------+------+------|
+ * | | | | | | | | | Prev | Next | | |
+ * |------+------+------+------+------+------|------+------+------+------+------+------|
+ * | | | | | | | | | | | | |
+ * `-----------------------------------------------------------------------------------'
+ */
+[_ADJUST] = LAYOUT_ortho_4x12(
+ KC_PSCR, XXXXXXX, XXXXXXX, KC_PGUP, KC_BRIU, XXXXXXX, XXXXXXX, KC_MUTE, KC_VOLD, KC_VOLU, KC_MPLY, RESET,
+ XXXXXXX, XXXXXXX, XXXXXXX, KC_PGDN, KC_BRID, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX,
+ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MPRV, KC_MNXT, XXXXXXX, XXXXXXX,
+ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
+)
+};
+
+combo_t key_combos[COMBO_COUNT] = {
+ COMBO(df_tab, KC_TAB),
+ COMBO(jk_alt, KC_LALT),
+};
+
+layer_state_t layer_state_set_user(layer_state_t state) {
+ return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
+}
+
+uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) {
+ case _SFT:
+ return TAPPING_TERM - 100;
+ default:
+ return TAPPING_TERM;
+ }
+}
diff --git a/keyboards/40percentclub/nori/keymaps/wings_36key/readme.md b/keyboards/40percentclub/nori/keymaps/wings_36key/readme.md
new file mode 100644
index 0000000000..16eb6d9e11
--- /dev/null
+++ b/keyboards/40percentclub/nori/keymaps/wings_36key/readme.md
@@ -0,0 +1,3 @@
+# 36 Key QWERTY Layout
+
+Offers more hand seperation with a 2 key gap down the middle of the board.
diff --git a/keyboards/40percentclub/nori/keymaps/wings_36key/rules.mk b/keyboards/40percentclub/nori/keymaps/wings_36key/rules.mk
new file mode 100644
index 0000000000..446213032e
--- /dev/null
+++ b/keyboards/40percentclub/nori/keymaps/wings_36key/rules.mk
@@ -0,0 +1 @@
+COMBO_ENABLE = yes # Custom chords