~ruther/qmk_firmware

8093b13365864ec96192265242a9da44c36db798 — Ryan 2 years ago 658b6aa
Move `TAPPING_TOGGLE` to data driven (#21360)

47 files changed, 70 insertions(+), 101 deletions(-)

M keyboards/bajjak/config.h
M keyboards/bajjak/info.json
M keyboards/checkerboards/quark_lp/config.h
M keyboards/checkerboards/quark_lp/info.json
M keyboards/converter/a1200/mistress1200/config.h
M keyboards/converter/a1200/mistress1200/info.json
D keyboards/dumbpad/config.h
M keyboards/dumbpad/info.json
D keyboards/dumbpad/v1x_oled/config.h
M keyboards/ergodox_ez/config.h
M keyboards/ergodox_ez/info.json
M keyboards/fungo/rev1/config.h
M keyboards/fungo/rev1/info.json
M keyboards/gboards/ergotaco/config.h
M keyboards/gboards/ergotaco/info.json
M keyboards/gboards/georgi/config.h
M keyboards/gboards/georgi/info.json
M keyboards/gboards/gergo/config.h
M keyboards/gboards/gergo/info.json
M keyboards/handwired/dactyl/config.h
M keyboards/handwired/dactyl/info.json
M keyboards/handwired/dactyl_rah/config.h
M keyboards/handwired/dactyl_rah/info.json
M keyboards/handwired/frenchdev/config.h
M keyboards/handwired/frenchdev/info.json
M keyboards/handwired/jopr/config.h
M keyboards/handwired/jopr/info.json
M keyboards/handwired/kbod/config.h
M keyboards/handwired/kbod/info.json
M keyboards/handwired/pterodactyl/config.h
M keyboards/handwired/pterodactyl/info.json
M keyboards/handwired/terminus_mini/config.h
M keyboards/handwired/terminus_mini/info.json
M keyboards/hotdox/config.h
M keyboards/hotdox/info.json
M keyboards/input_club/ergodox_infinity/config.h
M keyboards/input_club/ergodox_infinity/info.json
M keyboards/nack/config.h
M keyboards/nack/info.json
D keyboards/neopad/config.h
M keyboards/neopad/rev1/info.json
M keyboards/planck/ez/config.h
M keyboards/planck/ez/info.json
M keyboards/planck/thk/config.h
M keyboards/planck/thk/info.json
M keyboards/ymdk/ymd96/config.h
M keyboards/ymdk/ymd96/info.json
M keyboards/bajjak/config.h => keyboards/bajjak/config.h +0 -2
@@ 43,8 43,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_MAX_SPEED      7
#define MOUSEKEY_WHEEL_DELAY 0

#define TAPPING_TOGGLE  1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

M keyboards/bajjak/info.json => keyboards/bajjak/info.json +3 -0
@@ 10,6 10,9 @@
    },
    "processor": "atmega32u4",
    "bootloader": "halfkay",
    "tapping": {
        "toggle": 1
    },
    "layouts": {
        "LAYOUT_6x7": {
            "layout": [

M keyboards/checkerboards/quark_lp/config.h => keyboards/checkerboards/quark_lp/config.h +0 -2
@@ 22,8 22,6 @@
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define TAPPING_TOGGLE 2

#ifdef RGB_MATRIX_ENABLE
#define RGB_MATRIX_LED_COUNT 51
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses

M keyboards/checkerboards/quark_lp/info.json => keyboards/checkerboards/quark_lp/info.json +3 -0
@@ 21,6 21,9 @@
    "diode_direction": "COL2ROW",
    "processor": "atmega32u2",
    "bootloader": "atmel-dfu",
    "tapping": {
        "toggle": 2
    },
    "layouts": {
        "LAYOUT_ortho_4x12": {
            "layout": [

M keyboards/converter/a1200/mistress1200/config.h => keyboards/converter/a1200/mistress1200/config.h +0 -2
@@ 17,8 17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define TAPPING_TOGGLE 3

#undef LOCKING_SUPPORT_ENABLE
#undef LOCKING_RESYNC_ENABLE
#define LAYER_STATE_8BIT

M keyboards/converter/a1200/mistress1200/info.json => keyboards/converter/a1200/mistress1200/info.json +4 -1
@@ 16,5 16,8 @@
        "on_state": 0
    },
    "processor": "atmega16u4",
    "bootloader": "atmel-dfu"
    "bootloader": "atmel-dfu",
    "tapping": {
        "toggle": 3
    }
}

D keyboards/dumbpad/config.h => keyboards/dumbpad/config.h +0 -20
@@ 1,20 0,0 @@
/*
Copyright 2020 imchipwood

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

/* Reduce tapdance required taps from 5 to 2 */
#define TAPPING_TOGGLE 2

M keyboards/dumbpad/info.json => keyboards/dumbpad/info.json +3 -0
@@ 6,5 6,8 @@
    "usb": {
        "vid": "0xDEAF",
        "pid": "0x0913"
    },
    "tapping": {
        "toggle": 2
    }
}

D keyboards/dumbpad/v1x_oled/config.h => keyboards/dumbpad/v1x_oled/config.h +0 -17
@@ 1,17 0,0 @@
/*
Copyright 2020 imchipwood
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

/* Reduce tapdance required taps from 5 to 2 */
#define TAPPING_TOGGLE 2

M keyboards/ergodox_ez/config.h => keyboards/ergodox_ez/config.h +0 -2
@@ 44,8 44,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_WHEEL_MAX_SPEED    MOUSEKEY_MAX_SPEED
#define MOUSEKEY_WHEEL_TIME_TO_MAX  MOUSEKEY_TIME_TO_MAX

#define TAPPING_TOGGLE  1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

M keyboards/ergodox_ez/info.json => keyboards/ergodox_ez/info.json +3 -0
@@ 18,6 18,9 @@
    "processor": "atmega32u4",
    "bootloader": "halfkay",
    "debounce": 30,
    "tapping": {
        "toggle": 1
    },
    "community_layouts": ["ergodox"],
    "layouts": {
        "LAYOUT_ergodox": {

M keyboards/fungo/rev1/config.h => keyboards/fungo/rev1/config.h +0 -5
@@ 31,8 31,3 @@

/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

//지정된 횟수로 눌러야 토글됨
#define TAPPING_TOGGLE 3



M keyboards/fungo/rev1/info.json => keyboards/fungo/rev1/info.json +3 -0
@@ 25,6 25,9 @@
  "processor": "atmega32u4",
  "bootloader": "caterina",
  "debounce": 3,
  "tapping": {
    "toggle": 3
  },
  "layout_aliases": {
    "LAYOUT_fungo_split_num": "LAYOUT"
  },

M keyboards/gboards/ergotaco/config.h => keyboards/gboards/ergotaco/config.h +0 -1
@@ 32,7 32,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_TIME_TO_MAX    60
#define MOUSEKEY_MAX_SPEED      7
#define MOUSEKEY_WHEEL_DELAY 0
#define TAPPING_TOGGLE  1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

M keyboards/gboards/ergotaco/info.json => keyboards/gboards/ergotaco/info.json +3 -0
@@ 10,6 10,9 @@
    },
    "processor": "atmega32u4",
    "bootloader": "atmel-dfu",
    "tapping": {
        "toggle": 1
    },
    "layouts": {
        "LAYOUT": {
            "layout": [

M keyboards/gboards/georgi/config.h => keyboards/gboards/georgi/config.h +0 -1
@@ 37,7 37,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_TIME_TO_MAX    60
#define MOUSEKEY_MAX_SPEED      7
#define MOUSEKEY_WHEEL_DELAY 0
#define TAPPING_TOGGLE  2

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

M keyboards/gboards/georgi/info.json => keyboards/gboards/georgi/info.json +3 -0
@@ 11,6 11,9 @@
    },
    "processor": "atmega32u4",
    "bootloader": "atmel-dfu",
    "tapping": {
        "toggle": 2
    },
    "layout_aliases": {
        "LAYOUT_georgi": "LAYOUT"
    },

M keyboards/gboards/gergo/config.h => keyboards/gboards/gergo/config.h +0 -1
@@ 41,7 41,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_TIME_TO_MAX    60
#define MOUSEKEY_MAX_SPEED      7
#define MOUSEKEY_WHEEL_DELAY 0
#define TAPPING_TOGGLE  1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

M keyboards/gboards/gergo/info.json => keyboards/gboards/gergo/info.json +3 -0
@@ 13,6 13,9 @@
    },
    "processor": "atmega32u4",
    "bootloader": "atmel-dfu",
    "tapping": {
        "toggle": 1
    },
    "layout_aliases": {
        "LAYOUT_gergo": "LAYOUT"
    },

M keyboards/handwired/dactyl/config.h => keyboards/handwired/dactyl/config.h +0 -2
@@ 37,8 37,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_MAX_SPEED    7
#define MOUSEKEY_WHEEL_DELAY  0

#define TAPPING_TOGGLE  1

/* key combination for command */
#define IS_COMMAND() ( \
    get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \

M keyboards/handwired/dactyl/info.json => keyboards/handwired/dactyl/info.json +3 -0
@@ 11,6 11,9 @@
  "processor": "atmega32u4",
  "bootloader": "halfkay",
  "debounce": 15,
  "tapping": {
    "toggle": 1
  },
  "layouts": {
    "LAYOUT_dactyl": {
      "layout": [

M keyboards/handwired/dactyl_rah/config.h => keyboards/handwired/dactyl_rah/config.h +0 -3
@@ 24,9 24,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_MAX_SPEED       7
#define MOUSEKEY_WHEEL_DELAY 0

/* layer config */
#define TAPPING_TOGGLE 1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE


M keyboards/handwired/dactyl_rah/info.json => keyboards/handwired/dactyl_rah/info.json +3 -0
@@ 18,6 18,9 @@
  },
  "processor": "atmega32u4",
  "bootloader": "caterina",
  "tapping": {
    "toggle": 1
  },
  "layouts": {
    "LAYOUT_6x6": {
      "layout": [

M keyboards/handwired/frenchdev/config.h => keyboards/handwired/frenchdev/config.h +0 -2
@@ 31,8 31,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_MAX_SPEED      2
#define MOUSEKEY_WHEEL_DELAY 0

#define TAPPING_TOGGLE  1

/* key combination for command */
#define IS_COMMAND() ( \
    get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \

M keyboards/handwired/frenchdev/info.json => keyboards/handwired/frenchdev/info.json +3 -0
@@ 9,6 9,9 @@
  },
  "processor": "atmega32u4",
  "bootloader": "halfkay",
  "tapping": {
    "toggle": 1
  },
  "layouts": {
    "LAYOUT": {
      "layout": [

M keyboards/handwired/jopr/config.h => keyboards/handwired/jopr/config.h +0 -1
@@ 7,7 7,6 @@
#define LOCKING_RESYNC_ENABLE

#define NO_ACTION_ONESHOT
#define TAPPING_TOGGLE 3

#define RGBLIGHT_HUE_STEP 1
#define RGBLIGHT_SAT_STEP 1

M keyboards/handwired/jopr/info.json => keyboards/handwired/jopr/info.json +3 -0
@@ 21,6 21,9 @@
  "diode_direction": "COL2ROW",
  "processor": "atmega32u4",
  "bootloader": "atmel-dfu",
  "tapping": {
    "toggle": 3
  },
  "layouts": {
    "LAYOUT": {
      "layout": [

M keyboards/handwired/kbod/config.h => keyboards/handwired/kbod/config.h +0 -2
@@ 37,5 37,3 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT

#define TAPPING_TOGGLE 2

M keyboards/handwired/kbod/info.json => keyboards/handwired/kbod/info.json +3 -0
@@ 18,6 18,9 @@
    },
    "processor": "atmega32u4",
    "bootloader": "caterina",
    "tapping": {
        "toggle": 2
    },
    "layouts": {
        "LAYOUT": {
            "layout": [

M keyboards/handwired/pterodactyl/config.h => keyboards/handwired/pterodactyl/config.h +0 -2
@@ 37,8 37,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_MAX_SPEED    7
#define MOUSEKEY_WHEEL_DELAY  0

#define TAPPING_TOGGLE  1

/* key combination for command */
#define IS_COMMAND() ( \
    get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \

M keyboards/handwired/pterodactyl/info.json => keyboards/handwired/pterodactyl/info.json +3 -0
@@ 11,6 11,9 @@
  "processor": "atmega32u4",
  "bootloader": "caterina",
  "debounce": 0,
  "tapping": {
    "toggle": 1
  },
  "layouts": {
    "LAYOUT_pterodactyl": {
      "layout": [

M keyboards/handwired/terminus_mini/config.h => keyboards/handwired/terminus_mini/config.h +0 -3
@@ 17,9 17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.

#pragma once

//define tapping-toggle count
#define TAPPING_TOGGLE 1

//define maximum duration of hold required to register a tap vs hold default is 200
#define TAPPING_TERM 150 //reduce time required to register a held key


M keyboards/handwired/terminus_mini/info.json => keyboards/handwired/terminus_mini/info.json +3 -0
@@ 15,6 15,9 @@
  "diode_direction": "COL2ROW",
  "processor": "atmega32u4",
  "bootloader": "halfkay",
  "tapping": {
    "toggle": 1
  },
  "layouts": {
    "LAYOUT": {
      "layout": [

M keyboards/hotdox/config.h => keyboards/hotdox/config.h +0 -2
@@ 11,8 11,6 @@
#define MOUSEKEY_MAX_SPEED      7
#define MOUSEKEY_WHEEL_DELAY    0

#define TAPPING_TOGGLE  1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

M keyboards/hotdox/info.json => keyboards/hotdox/info.json +3 -0
@@ 12,6 12,9 @@
    },
    "processor": "atmega32u4",
    "bootloader": "atmel-dfu",
    "tapping": {
      "toggle": 1
    },
    "community_layouts": ["ergodox"],
    "layouts": {
    "LAYOUT_ergodox": {

M keyboards/input_club/ergodox_infinity/config.h => keyboards/input_club/ergodox_infinity/config.h +0 -2
@@ 23,8 23,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MOUSEKEY_MAX_SPEED      7
#define MOUSEKEY_WHEEL_DELAY 0

#define TAPPING_TOGGLE  1

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

M keyboards/input_club/ergodox_infinity/info.json => keyboards/input_club/ergodox_infinity/info.json +3 -0
@@ 17,6 17,9 @@
    "processor": "MK20DX256",
    "bootloader": "kiibohd",
    "board": "IC_TEENSY_3_1",
    "tapping": {
        "toggle": 1
    },
    "community_layouts": ["ergodox"],
    "layouts": {
        "LAYOUT_ergodox": {

M keyboards/nack/config.h => keyboards/nack/config.h +0 -2
@@ 17,8 17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define TAPPING_TOGGLE 2

#ifdef RGB_MATRIX_ENABLE
    #define WS2812_SPI SPID1
    #define WS2812_SPI_MOSI_PAL_MODE 5

M keyboards/nack/info.json => keyboards/nack/info.json +3 -0
@@ 23,6 23,9 @@
    "processor": "STM32F303",
    "bootloader": "stm32-dfu",
    "board": "QMK_PROTON_C",
    "tapping": {
        "toggle": 2
    },
    "layout_aliases": {
        "LAYOUT": "LAYOUT_ortho_4x13"
    },

D keyboards/neopad/config.h => keyboards/neopad/config.h +0 -20
@@ 1,20 0,0 @@
/*
Copyright 2021 rookiebwoy

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

/* Reduce tapdance required taps from 5 to 2 */
#define TAPPING_TOGGLE 2

M keyboards/neopad/rev1/info.json => keyboards/neopad/rev1/info.json +3 -0
@@ 21,6 21,9 @@
    },
    "processor": "atmega32u4",
    "bootloader": "caterina",
    "tapping": {
        "toggle": 2
    },
    "layouts": {
        "LAYOUT": {
            "layout": [

M keyboards/planck/ez/config.h => keyboards/planck/ez/config.h +0 -2
@@ 110,8 110,6 @@
#define ENABLE_RGB_MATRIX_SOLID_SPLASH
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH

#define TAPPING_TOGGLE  1

#define MOUSEKEY_INTERVAL           20
#define MOUSEKEY_DELAY              0
#define MOUSEKEY_TIME_TO_MAX        60

M keyboards/planck/ez/info.json => keyboards/planck/ez/info.json +3 -0
@@ 21,6 21,9 @@
  },
  "processor": "STM32F303",
  "bootloader": "stm32-dfu",
  "tapping": {
    "toggle": 1
  },
  "community_layouts": ["ortho_4x12", "planck_mit"],
  "layout_aliases": {
    "LAYOUT_planck_grid": "LAYOUT_ortho_4x12",

M keyboards/planck/thk/config.h => keyboards/planck/thk/config.h +0 -2
@@ 18,8 18,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define TAPPING_TOGGLE 3

#define DIP_SWITCH_PINS { D0, D1, D4, D6 }

// THK uses D5 for audio

M keyboards/planck/thk/info.json => keyboards/planck/thk/info.json +3 -0
@@ 21,6 21,9 @@
  },
  "processor": "atmega32a",
  "bootloader": "usbasploader",
  "tapping": {
    "toggle": 3
  },
  "layout_aliases": {
    "LAYOUT_planck_grid": "LAYOUT_ortho_4x12",
    "LAYOUT_planck_mit": "LAYOUT_planck_1x2uC"

M keyboards/ymdk/ymd96/config.h => keyboards/ymdk/ymd96/config.h +0 -2
@@ 19,8 19,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define TAPPING_TOGGLE 3

/* RGB underglow */
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD

M keyboards/ymdk/ymd96/info.json => keyboards/ymdk/ymd96/info.json +3 -0
@@ 32,6 32,9 @@
    },
    "processor": "atmega32a",
    "bootloader": "bootloadhid",
    "tapping": {
        "toggle": 3
    },
    "layouts": {
        "LAYOUT_default": {
            "layout": [

Do not follow this link