Skip to content

Commit

Permalink
Migrate miscellaneous fn_actions entries (qmk#8977)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored and noroadsleft committed May 22, 2020
1 parent 8fa4222 commit c0c7636
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 33 deletions.
4 changes: 0 additions & 4 deletions keyboards/ergodox_stm32/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

};

const uint16_t PROGMEM fn_actions[] = {
[1] = TT(1)
};

layer_state_t layer_state_set_user(layer_state_t state) {

uint8_t layer = get_highest_layer(state);
Expand Down
4 changes: 1 addition & 3 deletions keyboards/infinity60/keymaps/jpetermans/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ enum ic60_keycodes {
NUMPAD,
FNAV,
MEDIA,
CTLALTDEL,
BACKLIGHT,
BRIGHT,
DIM,
Expand Down Expand Up @@ -73,7 +72,7 @@ const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_CAPS,_______,_______,_______,_______,_______,_______,KC_PGUP,KC_UP,KC_PGDN,KC_PSCR,_______,_______,KC_DEL, \
_______,_______,KC_BTN2,_______,_______,_______,KC_HOME,KC_LEFT,KC_DOWN,KC_RGHT,KC_INS,_______,_______, \
_______,KC_APP,KC_BTN1,KC_CALC,_______,_______,KC_END,_______,_______,_______,_______,_______,KC_NO, \
_______,_______,_______, _______, F(CTLALTDEL),KC_NLCK,_______,_______ \
_______,_______,_______, _______, C(A(KC_DEL)),KC_NLCK,_______,_______ \
),

/* media */
Expand Down Expand Up @@ -161,7 +160,6 @@ uint8_t led_game[5] = {

//======== qmk functions =========
const uint16_t fn_actions[] = {
[CTLALTDEL] = ACTION_KEY(LALT(LCTL(KC_DEL))),
[ALL] = ACTION_FUNCTION(ACTION_LEDS_ALL),
[GAME] = ACTION_FUNCTION(ACTION_LEDS_GAME),
[BACKLIGHT] = ACTION_FUNCTION(ACTION_LEDS_BACKLIGHT),
Expand Down
13 changes: 3 additions & 10 deletions keyboards/keebio/nyquist/keymaps/danielhklein/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,9 @@ enum custom_keycodes {
ARROW
};

// Enable these functions using FUNC(n) macro.
const uint16_t PROGMEM fn_actions[] = {
[0] = LT(_LOWER, KC_SPC), //Hold for momentary Lower layer, Tap for Backspace,
[1] = LT(_RAISE, KC_BSPC), //Hold for momentary Raise layer, Tap for Space,
[2] = MO(_ARROW), //Hold for momentary Arrow
};

#define SPC_LWR FUNC(0)
#define BSP_RSE FUNC(1)
#define ARW FUNC(2)
#define SPC_LWR LT(_LOWER, KC_SPC)
#define BSP_RSE LT(_RAISE, KC_BSPC)
#define ARW MO(_ARROW)

// Underglow setup
#define RGBLIGHT_SLEEP
Expand Down
4 changes: 0 additions & 4 deletions keyboards/planck/keymaps/ishtob/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

};

const uint16_t PROGMEM fn_actions[] = {
ACTION_SWAP_HANDS_TAP_KEY(KC_SPC),
};

#ifdef AUDIO_ENABLE

float tone_startup[][2] = SONG(STARTUP_SOUND);
Expand Down
6 changes: 0 additions & 6 deletions keyboards/sentraq/s60_x/keymaps/ansi_qwertz/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),
};

/*
* Fn action definition
*/
const uint16_t PROGMEM fn_actions[] = {
};

void matrix_init_user(void) {

}
Expand Down
8 changes: 2 additions & 6 deletions layouts/community/ergodox/kastyle/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, TG(1),
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G,
KC_LSFT, CTL_T(KC_Z), KC_X, KC_C, KC_V, KC_B, ALL_T(KC_NO),
KC_FN1, KC_BSLS, LALT(KC_LSFT), KC_LEFT, KC_RGHT,
SH_T(KC_GRV), KC_BSLS, LALT(KC_LSFT), KC_LEFT, KC_RGHT,
KC_LGUI, ALT_T(KC_ESC),
KC_HOME,
KC_BSPC, KC_DEL, KC_END,
Expand All @@ -48,7 +48,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
TG(1), KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
KC_H, KC_J, KC_K, KC_L, LT(MDIA, KC_SCLN), KC_QUOT,
MEH_T(KC_NO), KC_N, KC_M, KC_COMM, KC_DOT, CTL_T(KC_SLSH), KC_RSFT,
KC_UP, KC_DOWN, KC_LBRC, KC_RBRC, KC_FN1,
KC_UP, KC_DOWN, KC_LBRC, KC_RBRC, SH_T(KC_GRV),
ALT_T(KC_ESC), KC_RGUI,
KC_PGUP,
KC_PGDN, KC_ENT, KC_SPC
Expand Down Expand Up @@ -155,10 +155,6 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
return MACRO_NONE;
};

const uint16_t PROGMEM fn_actions[] = {
[1] = ACTION_SWAP_HANDS_TAP_KEY(KC_GRV) // FN1 - Tap = Grave/Tilde - Hold Momentary swap hands
};

// Runs just one time when the keyboard initializes.
void matrix_init_user(void) {

Expand Down

0 comments on commit c0c7636

Please sign in to comment.