aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/ai03/polaris/keymaps/mekberg/config.h22
-rw-r--r--keyboards/ai03/polaris/keymaps/mekberg/keymap.c97
-rw-r--r--keyboards/ai03/polaris/keymaps/mekberg/readme.md14
-rw-r--r--keyboards/ai03/polaris/keymaps/mekberg/rules.mk2
4 files changed, 135 insertions, 0 deletions
diff --git a/keyboards/ai03/polaris/keymaps/mekberg/config.h b/keyboards/ai03/polaris/keymaps/mekberg/config.h
new file mode 100644
index 000000000..ef8caf870
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/mekberg/config.h
@@ -0,0 +1,22 @@
1/*
2Copyright 2019 Ryota Goto
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20// Define some configuration for modtap behavior
21// #define TAPPING_TERM 150
22#define PERMISSIVE_HOLD
diff --git a/keyboards/ai03/polaris/keymaps/mekberg/keymap.c b/keyboards/ai03/polaris/keymaps/mekberg/keymap.c
new file mode 100644
index 000000000..fce03adfb
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/mekberg/keymap.c
@@ -0,0 +1,97 @@
1/* Copyright 2019 Ryota Goto
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18enum layer_names {
19 _BASE,
20 _NAV,
21 _FN
22};
23
24#define MY_LOCK C(LCMD(KC_L)) // Mac: Custom lock hotkey in BTT (when Alt/Command have been swapped in macOS)
25
26/*
27KBD6x ANSI physical layout
281u == 8chars
29 ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
30 | | | | | | | | | | | | | | | |
31 |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
32 | 1,5u | | | | | | | | | | | | | 1,5u |
33 |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
34 | 1,75u | | | | | | | | | | | | 1,25u |
35 |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
36 | 2,25u | | | | | | | | | | | 1,75u | |
37 └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
38 | | 1,25u | | 1,25u | |
39 └────────────────────────────────────────────────────────────────────────────────────────────────────┘
40*/
41
42const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
43 [_BASE] = LAYOUT_60_tsangan_hhkb(
44// ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
45// | | | | | | | | | | | | | | | |
46 KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_NUBS, KC_RBRC,
47// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
48// | 1,5u | | | | | | | | | | | | | 1,5u |
49 LT(_NAV,KC_TAB), KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_NUHS, KC_BSPC,
50// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
51// | 1,75u | | | | | | | | | | | | 1,25u |
52 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
53// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
54// | 1,25u | | | | | | | | | | | 1,75u | |
55 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FN),
56// └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
57// | | 1,25u | | 1,25u | |
58 XXXXXXX, KC_LGUI, KC_LALT, KC_SPACE, KC_RALT, KC_RGUI, XXXXXXX
59// └────────────────────────────────────────────────────────────────────────────────────────────────────┘
60 ),
61 [_NAV] = LAYOUT_60_tsangan_hhkb(
62// ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
63// | | | | | | | | | | | | | | | |
64 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS, KC_BSPC,
65// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
66// | 1,5u | | | | | | | | | | | | | 1,5u |
67 _______, _______, _______, _______, _______, _______, KC_END, KC_PGDN, KC_UP, KC_PGUP, KC_HOME, _______, _______, KC_DEL,
68// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
69// | 1,75u | | | | | | | | | | | | 1,25u |
70 _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______,
71// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
72// | 1,25u | | | | | | | | | | | 1,75u | |
73 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
74// └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
75// | | 1,25u | | 1,25u | |
76 XXXXXXX, _______, _______, _______, _______, _______, XXXXXXX
77// └────────────────────────────────────────────────────────────────────────────────────────────────────┘
78 ),
79 [_FN] = LAYOUT_60_tsangan_hhkb(
80// ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
81// | | | | | | | | | | | | | | | |
82 RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______,
83// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
84// | 1,5u | | | | | | | | | | | | | 1,5u |
85 _______, _______, _______, _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, _______,
86// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
87// | 1,75u | | | | | | | | | | | | 1,25u |
88 KC_RCTL, KC_VOLD, KC_VOLU, KC_MUTE, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, MY_LOCK,
89// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
90// | 1,25u | | | | | | | | | | | 1,75u | |
91 _______, BL_TOGG, BL_INC, BL_DEC, BL_STEP, _______, _______, _______, KC_MRWD, KC_MFFD, _______, _______, _______,
92// └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
93// | | 1,25u | | 1,25u | |
94 XXXXXXX, _______, _______, KC_MPLY, _______, _______, XXXXXXX
95// └────────────────────────────────────────────────────────────────────────────────────────────────────┘
96 ),
97};
diff --git a/keyboards/ai03/polaris/keymaps/mekberg/readme.md b/keyboards/ai03/polaris/keymaps/mekberg/readme.md
new file mode 100644
index 000000000..b9ae9642f
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/mekberg/readme.md
@@ -0,0 +1,14 @@
1# General Information
2
3This is more or less a HHKB base layout, but with completely different Fn layers. I don't use most of the HHKB secondary key positions because, honestly, they make no sense to me at all.
4
5Fn key layer is focused mostly on keyboard firmware features (like RGB) as well as some of the necessary alternate functions. It also hold media controls, F-keys and Reset.
6
7Left Tab-Hold layer is focused on nav cluster functionality, and turns Backspace into Delete (and moves Backspace up into the top right 1u position).
8
9
10# Build instructions
11
12To simply build the firmware file: `make clean && make ai03/polaris:mekberg`
13
14To build and immediately flash: `make clean && make ai03/polaris:mekberg:flash`
diff --git a/keyboards/ai03/polaris/keymaps/mekberg/rules.mk b/keyboards/ai03/polaris/keymaps/mekberg/rules.mk
new file mode 100644
index 000000000..e47bb9e6d
--- /dev/null
+++ b/keyboards/ai03/polaris/keymaps/mekberg/rules.mk
@@ -0,0 +1,2 @@
1BACKLIGHT_ENABLE = no # Disable keyboard backlight functionality
2RGBLIGHT_ENABLE = no # Disable keyboard RGB underglow