X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=inline;f=users%2Fkonstantin%2Fkonstantin.c;h=753742fa781006b554d38cf15b6024f81f8d0594;hb=4f0dc945c32fce91323e5321b6bca70bca4dd1ac;hp=977111c1f9b4dfcc8f7d52e4760213a491080f39;hpb=d977daa8dc9136746425f9e1414e1f93cb161877;p=qmk_firmware.git diff --git a/users/konstantin/konstantin.c b/users/konstantin/konstantin.c index 977111c1f..753742fa7 100644 --- a/users/konstantin/konstantin.c +++ b/users/konstantin/konstantin.c @@ -1,14 +1,25 @@ #include "konstantin.h" -#ifdef LAYER_NUMPAD -static void toggle_numpad(void) { - layer_invert(L_NUMPAD); - bool num_lock = host_keyboard_leds() & 1<event.pressed) { @@ -27,12 +48,24 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { } return false; + case DST_P_R: + (record->event.pressed ? register_code16 : unregister_code16)( + (get_mods() & DST_MOD_MASK) ? DST_REM : DST_PRV + ); + return false; + + case DST_N_A: + (record->event.pressed ? register_code16 : unregister_code16)( + (get_mods() & DST_MOD_MASK) ? DST_ADD : DST_NXT + ); + return false; + #ifdef LAYER_FN - static bool fn_lock; + static bool fn_lock; case FN_FNLK: if (record->event.pressed && record->tap.count == TAPPING_TOGGLE) { - fn_lock = !IS_LAYER_ON(L_FN); // Fn layer will be toggled after this + fn_lock = !IS_LAYER_ON(L_FN); // Fn layer will be toggled after this } return true; #endif