Update whitefox/konstantin keymap (#4220)
* Change brace style to QMK OTBS * Change Unicode input mode to UC_WINC * Align constant values in config.h
This commit is contained in:
parent
6539426f61
commit
c8267d9fea
2 changed files with 15 additions and 21 deletions
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
#define FORCE_NKRO
|
#define FORCE_NKRO
|
||||||
|
|
||||||
#define PERMISSIVE_HOLD
|
|
||||||
#define TAPPING_TERM 200
|
|
||||||
#define TAPPING_TOGGLE 2
|
|
||||||
|
|
||||||
#define MOUSEKEY_DELAY 50
|
#define MOUSEKEY_DELAY 50
|
||||||
#define MOUSEKEY_INTERVAL 15
|
#define MOUSEKEY_INTERVAL 15
|
||||||
#define MOUSEKEY_MAX_SPEED 4
|
#define MOUSEKEY_MAX_SPEED 4
|
||||||
|
@ -13,5 +9,9 @@
|
||||||
#define MOUSEKEY_WHEEL_MAX_SPEED 1
|
#define MOUSEKEY_WHEEL_MAX_SPEED 1
|
||||||
#define MOUSEKEY_WHEEL_TIME_TO_MAX 50
|
#define MOUSEKEY_WHEEL_TIME_TO_MAX 50
|
||||||
|
|
||||||
|
#define PERMISSIVE_HOLD
|
||||||
|
#define TAPPING_TERM 200
|
||||||
|
#define TAPPING_TOGGLE 2
|
||||||
|
|
||||||
#undef IS_COMMAND
|
#undef IS_COMMAND
|
||||||
#define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RCTL)))
|
#define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RCTL)))
|
||||||
|
|
|
@ -19,9 +19,8 @@
|
||||||
#define UC_DIVS UC(0x00F7)
|
#define UC_DIVS UC(0x00F7)
|
||||||
#define UC_MINS UC(0x2212)
|
#define UC_MINS UC(0x2212)
|
||||||
|
|
||||||
void matrix_init_user(void)
|
void matrix_init_user(void) {
|
||||||
{
|
set_unicode_input_mode(UC_WINC);
|
||||||
set_unicode_input_mode(UC_WIN);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum layers {
|
enum layers {
|
||||||
|
@ -35,13 +34,10 @@ enum custom_keycodes {
|
||||||
NUMPAD,
|
NUMPAD,
|
||||||
};
|
};
|
||||||
|
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record)
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
{
|
|
||||||
switch (keycode) {
|
switch (keycode) {
|
||||||
case CLEAR:
|
case CLEAR:
|
||||||
if (record->event.pressed) {
|
if (record->event.pressed) { SEND_STRING(SS_LCTRL("a") SS_TAP(X_DELETE)); }
|
||||||
SEND_STRING(SS_LCTRL("a") SS_TAP(X_DELETE));
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
case NUMPAD:
|
case NUMPAD:
|
||||||
|
@ -65,15 +61,13 @@ enum tap_dance {
|
||||||
TD_DESKTOP,
|
TD_DESKTOP,
|
||||||
};
|
};
|
||||||
|
|
||||||
void td_fn_rctl_finished(qk_tap_dance_state_t *state, void *user_data)
|
void td_fn_rctl_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
{
|
|
||||||
// Single tap → Fn, double tap → RCtrl, triple tap → Fn+RCtrl etc.
|
// Single tap → Fn, double tap → RCtrl, triple tap → Fn+RCtrl etc.
|
||||||
if (state->count & 1) { layer_on(L_FN); }
|
if (state->count & 1) { layer_on(L_FN); }
|
||||||
if (state->count & 2) { register_code(KC_RCTL); }
|
if (state->count & 2) { register_code(KC_RCTL); }
|
||||||
}
|
}
|
||||||
|
|
||||||
void td_fn_rctl_reset(qk_tap_dance_state_t *state, void *user_data)
|
void td_fn_rctl_reset(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
{
|
|
||||||
if (state->count & 1) { layer_off(L_FN); }
|
if (state->count & 1) { layer_off(L_FN); }
|
||||||
if (state->count & 2) { unregister_code(KC_RCTL); }
|
if (state->count & 2) { unregister_code(KC_RCTL); }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue