summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/jian/keymaps/via/keymap.c28
-rw-r--r--keyboards/jian/keymaps/via/rules.mk3
-rw-r--r--keyboards/jian/nsrev2/config.h3
-rw-r--r--keyboards/jian/rev2/config.h3
-rw-r--r--keyboards/jian/rules.mk1
5 files changed, 38 insertions, 0 deletions
diff --git a/keyboards/jian/keymaps/via/keymap.c b/keyboards/jian/keymaps/via/keymap.c
new file mode 100644
index 0000000000..9da0b5f4da
--- /dev/null
+++ b/keyboards/jian/keymaps/via/keymap.c
@@ -0,0 +1,28 @@
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+[0] = LAYOUT(
+ KC_LGUI, KC_GRV, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, RGUI_T(KC_RBRC),
+ KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, RCTL_T(KC_QUOT),
+ KC_LALT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RALT_T(KC_BSLS),
+ LT(2, KC_TAB), LSFT_T(KC_SPC), LT(1, KC_ENT), LT(1, KC_ESC), RSFT_T(KC_BSPC), LT(2, KC_DEL)
+),
+[1] = LAYOUT(
+ _______, KC_UNDS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, RGUI_T(KC_F12),
+ LCTL_T(KC_EQL), KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, RCTL_T(KC_MINS),
+ LALT_T(KC_PPLS), KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
+ LT(3, KC_TAB), _______, _______, _______, _______, LT(3, KC_DEL)
+),
+[2] = LAYOUT(
+ _______, KC_NLCK, KC_PSLS, KC_P7, KC_P8, KC_P9, KC_PMNS, KC_VOLU, KC_HOME, KC_PSCR, KC_PGUP, KC_SLCK, KC_CAPS, _______,
+ LCTL_T(KC_EQL), KC_PAST, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_MUTE, KC_LEFT, KC_UP, KC_RGHT, KC_INS, RCTL_T(KC_APP),
+ _______, KC_P0, KC_P1, KC_P2, KC_P3, KC_PCMM, KC_VOLD, KC_END, KC_DOWN, KC_PGDN, KC_PAUS, _______,
+ _______, _______, LT(3, KC_ENT), LT(3, KC_ESC), _______, _______
+),
+[3] = LAYOUT_symmetric(
+ RESET, DEBUG, XXXXXXX, BL_INC, RGB_VAI, RGB_HUD, RGB_HUI,
+ XXXXXXX, XXXXXXX, BL_DEC, RGB_VAD, RGB_SAD, RGB_SAI,
+ XXXXXXX, BL_BRTG, BL_TOGG, RGB_TOG, RGB_RMOD,RGB_MOD,
+ _______, SH_TG, _______
+)
+};
diff --git a/keyboards/jian/keymaps/via/rules.mk b/keyboards/jian/keymaps/via/rules.mk
new file mode 100644
index 0000000000..aa77c05490
--- /dev/null
+++ b/keyboards/jian/keymaps/via/rules.mk
@@ -0,0 +1,3 @@
+SWAP_HANDS_ENABLE = yes
+EXTRAKEY_ENABLE = yes # Audio control and System control
+VIA_ENABLE = yes
diff --git a/keyboards/jian/nsrev2/config.h b/keyboards/jian/nsrev2/config.h
index 9277aa19af..2a811e75c4 100644
--- a/keyboards/jian/nsrev2/config.h
+++ b/keyboards/jian/nsrev2/config.h
@@ -41,6 +41,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5
+#define QMK_ESC_OUTPUT D3
+#define QMK_ESC_INPUT B1
+
#define PHYSICAL_LEDS_ENABLE
#ifdef BACKLIGHT_ENABLE
diff --git a/keyboards/jian/rev2/config.h b/keyboards/jian/rev2/config.h
index 760389cc64..296e168ecd 100644
--- a/keyboards/jian/rev2/config.h
+++ b/keyboards/jian/rev2/config.h
@@ -47,6 +47,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5
+#define QMK_ESC_OUTPUT D3
+#define QMK_ESC_INPUT B1
+
#define PHYSICAL_LEDS_ENABLE
#define IOS_DEVICE_ENABLE
diff --git a/keyboards/jian/rules.mk b/keyboards/jian/rules.mk
index c19fa00b5c..7227083305 100644
--- a/keyboards/jian/rules.mk
+++ b/keyboards/jian/rules.mk
@@ -1 +1,2 @@
DEFAULT_FOLDER = jian/rev2
+LTO_ENABLE = yes