Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Combos #11

Open
wants to merge 40 commits into
base: miryoku
Choose a base branch
from
Open

Custom Combos #11

wants to merge 40 commits into from

Conversation

xervon
Copy link

@xervon xervon commented Nov 26, 2022

This change allows the user to create custom combos.

To facilitate this, I

  • added a new option MIRYOKU_CUSTOM_COMBO_COUNT and
  • included the file custom_keymap.c from manna-harbour_miryoku.h
  • created a stub for custom_keymap.c based on custom_config.h

To define custom combos, set MIRYOKU_CUSTOM_COMBO_COUNT to the amount of combos that are defined and define combos in custom_keymap.c

Example custom_keymap.c:

const uint16_t PROGMEM repeat_home[] = {KC_J, KC_K, COMBO_END};

#define MIRYOKU_CUSTOM_COMBOS \
  COMBO(repeat_home, KC_ESC)

custom_rules.mk:

MIRYOKU_CUSTOM_COMBO_COUNT=1

Individual commits can be found at https://github.com/manna-harbour/miryoku_qmk/commits/miryoku-20220227

- Add FUNDING.yml
- Update root readme
- Remove files from .github
- Add workflows
- Add custom_config.h and custom_rules.mk to workflows
- Override local custom_rules.mk and custom_config.h in workflows
- Add merge field to workflows
- Update BT keycodes on Media inner index:
  - Move OUT_AUTO to bottom row
- Move RGB_TOG in vi to pinkie column to match other TOG keycodes, and rotate row
- Supports adding and removing layers from custom_config.h
- Add "U_" prefix to layer names
- Add layer name strings
- Populate keymaps array from X macro
- Populate layers enum from X macro
- Move layers enum to manna-harbour_miryoku.h
- Rename miryoku_alternatives.h to miryoku_layer_alternatives.h
- Rename miryoku_layer.h to miryoku_layer_selection.h
- Remove miryoku_layer_names.h
- Add miryoku_layer_list.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants