summaryrefslogtreecommitdiff
path: root/users/kuatsure
diff options
context:
space:
mode:
authorJarrett Drouillard <jarrett@thestyl.us>2021-08-12 11:56:25 -0400
committerGitHub <noreply@github.com>2021-08-12 08:56:25 -0700
commit2218879d6878a63e74bca473399f9d315da7648b (patch)
treeb89bb1ec1d704f6e101b5c8e2a6ae42de961c427 /users/kuatsure
parenta2d5468df331fec6d76a9c5fd4253ec788507bb1 (diff)
[Keymap] add kuatsure planck keymap (#10625)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'users/kuatsure')
-rw-r--r--users/kuatsure/kuatsure.c14
-rw-r--r--users/kuatsure/kuatsure.h10
2 files changed, 11 insertions, 13 deletions
diff --git a/users/kuatsure/kuatsure.c b/users/kuatsure/kuatsure.c
index f935e83c74..88bf6790a4 100644
--- a/users/kuatsure/kuatsure.c
+++ b/users/kuatsure/kuatsure.c
@@ -3,7 +3,8 @@
qk_tap_dance_action_t tap_dance_actions[] = {
[TD_LBRC] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LT),
- [TD_RBRC] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_GT)
+ [TD_RBRC] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_GT),
+ [TD_SLSH] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, KC_BSLS),
};
__attribute__ ((weak))
@@ -29,15 +30,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case KB_FLSH:
if (!record->event.pressed) {
- SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP
- #if (defined(BOOTLOADER_DFU) || defined(BOOTLOADER_LUFA_DFU) || defined(BOOTLOADER_QMK_DFU))
- ":dfu "
- #elif defined(BOOTLOADER_HALFKAY)
- ":teensy "
- #elif defined(BOOTLOADER_CATERINA)
- ":avrdude "
- #endif
- SS_TAP(X_ENTER)
+ SEND_STRING(
+ "qmk flash -kb " QMK_KEYBOARD " -km " QMK_KEYMAP
);
reset_keyboard();
diff --git a/users/kuatsure/kuatsure.h b/users/kuatsure/kuatsure.h
index 8961d56213..ca2c91c9bc 100644
--- a/users/kuatsure/kuatsure.h
+++ b/users/kuatsure/kuatsure.h
@@ -11,13 +11,18 @@ enum kuatsure_keycodes {
USER_SAFE_RANGE,
};
+#define ONESHOT_TAP_TOGGLE 2
+#define KT_LSFT OSM(MOD_LSFT)
+
enum {
TD_LBRC = 0,
TD_RBRC,
+ TD_SLSH
};
#define KT_LBRC TD(TD_LBRC)
#define KT_RBRC TD(TD_RBRC)
+#define KT_SLSH TD(TD_SLSH)
#define TAPPING_TERM 200
@@ -33,8 +38,6 @@ void tmux_pane_zoom(void);
#undef LEADER_TIMEOUT
#define LEADER_TIMEOUT 300
-#define LAYOUT_preonic_grid_wrapper(...) LAYOUT_preonic_grid(__VA_ARGS__)
-
#define _________________NUMBER_L1_________________ KC_1, KC_2, KC_3, KC_4, KC_5
#define _________________NUMBER_R1_________________ KC_6, KC_7, KC_8, KC_9, KC_0
@@ -47,7 +50,8 @@ void tmux_pane_zoom(void);
#define _________________QWERTY_R1_________________ KC_Y, KC_U, KC_I, KC_O, KC_P
#define _________________QWERTY_R2_________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN
-#define _________________QWERTY_R3_________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLASH
+#define _________________QWERTY_R3_________________ KC_N, KC_M, KC_COMM, KC_DOT, KT_SLSH
+#define _________________QWERTY_R3_M_______________ KC_N, KC_M, KC_COMM, KC_DOT, KC_UP
#define ____________FUNCTION_1____________ KC_F1, KC_F2, KC_F3, KC_F4
#define ____________FUNCTION_2____________ KC_F5, KC_F6, KC_F7, KC_F8