4 void dance_layer (qk_tap_dance_state_t *state, void *user_data) {
5 switch (state -> count) {
6 case 1: tap_code(KC_APP); break;
7 case 2: layer_invert(NUMP); break;
8 case 3: layer_invert(SYMB); break;
9 case 4: layer_invert(SYSH); break;
14 void dance_lock_finished (qk_tap_dance_state_t *state, void *user_data) {
15 switch (state->count) {
16 case 1: register_code(KC_LGUI); break;
17 case 2: register_code(KC_NLCK); break;
18 case 3: register_code(KC_CAPS); break;
19 case 4: register_code(KC_SLCK); break;
24 void dance_lock_reset (qk_tap_dance_state_t *state, void *user_data) {
25 switch (state->count) {
26 case 1: unregister_code(KC_LGUI); break;
27 case 2: unregister_code(KC_NLCK); break;
28 case 3: register_code(KC_CAPS); break;
29 case 4: register_code(KC_SLCK); break;
34 qk_tap_dance_action_t tap_dance_actions[] = {
35 [LOCKS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_lock_finished, dance_lock_reset),
36 [LAYERS] = ACTION_TAP_DANCE_FN(dance_layer)
39 void eeconfig_init_user (void) {
40 set_unicode_input_mode(UC_LNX); // Linux
41 //set_unicode_input_mode(UC_OSX); // Mac OSX
42 //set_unicode_input_mode(UC_WIN); // Windows (with registry key, see wiki)
43 //set_unicode_input_mode(UC_WINC); // Windows (with WinCompose, see wiki)