feat(q5_max): overhaul via keymap with custom layers and encoder features
Automatic Approve / automatic_approve (push) Has been skipped

Replace stock MAC/WIN dual-boot layers with a single-OS 6-layer layout
(BASE, FN1, FN2, FN3, FN4, KEEB_CTL). Add tap-dance Home/End, a mouse
control layer (FN2), and timer-based Alt+Tab cycling on the FN2 encoder.

- Restructure layers: drop MAC_BASE/MAC_FN/WIN_BASE/WIN_FN; add FN1-FN4
  and KEEB_CTL with Bluetooth/RGB controls
- Add ALT_TAB_FWD/ALT_TAB_BWD custom keycodes driven by matrix_scan_user
  timer to hold Alt across encoder ticks (750ms timeout)
- Assign FN2 encoder to Alt+Tab / Alt+Shift+Tab cycling
- Add TD_HOME_END tap-dance (tap=Home, double=End) on numpad Home key
- Enable MOUSEKEY_ENABLE and TAP_DANCE_ENABLE in rules.mk
- Set DYNAMIC_KEYMAP_LAYER_COUNT=6 and TAPPING_TOGGLE=3 in config.h
This commit is contained in:
2026-04-05 20:06:27 -04:00
parent 2dba2a548b
commit e99318637c
4 changed files with 112 additions and 33 deletions
@@ -20,12 +20,10 @@
/* RGB Matrix driver configuration */
# define RGB_MATRIX_LED_COUNT 101
# define DRIVER_COUNT 2
# define DRIVER_CS_PINS \
{ B8, B9 }
# define DRIVER_CS_PINS {B8, B9}
/* Set LED driver current */
# define SNLED27351_CURRENT_TUNE \
{ 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C }
# define SNLED27351_CURRENT_TUNE {0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C, 0x2C}
/* Set to infinit, which is use in USB mode by default */
# define RGB_MATRIX_TIMEOUT RGB_MATRIX_TIMEOUT_INFINITE
@@ -37,10 +35,15 @@
/* Indications */
# define NUM_LOCK_INDEX 32
# define CAPS_LOCK_INDEX 55
# define LOW_BAT_IND_INDEX \
{ 92 }
# define LOW_BAT_IND_INDEX {92}
# define RGB_MATRIX_KEYPRESSES
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#endif
/* Number of layers */
#define DYNAMIC_KEYMAP_LAYER_COUNT 6
/* Number of taps to toggle layer with TT */
#define TAPPING_TOGGLE 3