Skip to content

Commit

Permalink
assign custom key codes
Browse files Browse the repository at this point in the history
  • Loading branch information
asdiasx committed Aug 25, 2024
1 parent aa08e7b commit 0f5d297
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions users/manna-harbour_miryoku/custom_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#pragma once

#define MIRYOKU_LAYER_NAV \
TD(U_TD_BOOT), TD(U_TD_U_TAP), TD(U_TD_U_EXTRA), TD(U_TD_U_BASE), KC_X, U_RDO, U_PST, U_CPY, U_CUT, U_UND, \
TD(U_TD_BOOT), TD(U_TD_U_TAP), TD(U_TD_U_EXTRA), TD(U_TD_U_BASE), STR_VPN, U_RDO, U_PST, U_CPY, U_CUT, U_UND, \
KC_LGUI, KC_LALT, KC_LCTL, KC_LSFT, KC_Y, CW_TOGG, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, \
U_NA, KC_ALGR, TD(U_TD_U_NUM), TD(U_TD_U_NAV), KC_Z, KC_INS, KC_HOME, KC_PGDN, KC_PGUP, KC_END, \
U_NA, KC_ALGR, TD(U_TD_U_NUM), TD(U_TD_U_NAV), STR_NIB, KC_INS, KC_HOME, KC_PGDN, KC_PGUP, KC_END, \
U_NP, U_NP, U_NA, U_NA, U_NA, KC_ENT, KC_BSPC, KC_DEL, U_NP, U_NP

#if defined (KEYBOARD_crkbd)
Expand All @@ -25,4 +25,33 @@ U_NP, U_NP, U_NA, U_NA, U_NA
XXX, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, KC_ENT, \
K32, K33, K34, K35, K36, K37 \
)
#endif
#endif


enum custom_keycodes {
STR_VPN,
STR_NIB,
// SELWRD,
};

bool process_record_user(uint16_t keycode, keyrecord_t* record) {
// if (!process_select_word(keycode, record, SELWRD)) { return false; }
switch (keycode) {

case STR_VPN:
if (record->event.pressed) {
SEND_STRING("9l0i9jod");
}
return false;

case STR_NIB:
if (record->event.pressed) {
SEND_STRING("1%9$m2My");
}
return false;
}
return true;
}



0 comments on commit 0f5d297

Please sign in to comment.