Updates to mtdjr userspace and keymaps (#3206)
* slight tweaks to xd75 keymap * update to config.h to remove undef of solenoid active * code organization for userspace * updates to userspace and keymaps * add rgb to userspace and lets split * add conditional around rgb functions in userpsace * move rgb layer changes into layer_state_set_user
This commit is contained in:
parent
f46b1db9f4
commit
e8eaf5630c
10 changed files with 205 additions and 181 deletions
|
@ -3,27 +3,15 @@
|
|||
|
||||
#include "quantum.h"
|
||||
|
||||
#define _QWERTY 0
|
||||
#define _LOWER 1
|
||||
#define _RAISE 2
|
||||
#define _SUPER 3
|
||||
#define _ADJUST 16
|
||||
|
||||
enum user_layers {
|
||||
// Layers
|
||||
enum user_enum {
|
||||
// Layers
|
||||
QWERTY = SAFE_RANGE,
|
||||
LOWER,
|
||||
RAISE,
|
||||
SUPER,
|
||||
ADJUST,
|
||||
};
|
||||
|
||||
enum user_tapdance {
|
||||
TD_ENDLOCK,
|
||||
TD_ALTLOCK,
|
||||
TD_ESC,
|
||||
};
|
||||
|
||||
enum user_solenoid {
|
||||
// Solenoid
|
||||
SOLENOID_TOG,
|
||||
SOLENOID_DWELL_MINUS,
|
||||
SOLENOID_DWELL_PLUS,
|
||||
|
@ -31,33 +19,63 @@ enum user_solenoid {
|
|||
SOLENOID_BUZZ_OFF,
|
||||
};
|
||||
|
||||
#define KC_STOG SOLENOID_TOG
|
||||
#define KC_SDM SOLENOID_DWELL_MINUS
|
||||
#define KC_SDP SOLENOID_DWELL_PLUS
|
||||
#define KC_SBON SOLENOID_BUZZ_ON
|
||||
#define KC_SBOF SOLENOID_BUZZ_OFF
|
||||
// Macro / Send String
|
||||
enum user_macros {
|
||||
ROOT,
|
||||
PPLY,
|
||||
PSEF,
|
||||
};
|
||||
|
||||
// TapDance
|
||||
enum user_tapdance {
|
||||
TD_ENDLOCK,
|
||||
TD_ALTLOCK,
|
||||
TD_PRINT,
|
||||
TD_ESC,
|
||||
};
|
||||
|
||||
|
||||
// Layers
|
||||
#define _QWERTY 0
|
||||
#define _LOWER 1
|
||||
#define _RAISE 2
|
||||
#define _SUPER 3
|
||||
#define _ADJUST 16
|
||||
|
||||
// Macros
|
||||
#define KC_ROOT M(ROOT)
|
||||
#define KC_PPLY M(PPLY)
|
||||
#define KC_PSEF M(PSEF)
|
||||
|
||||
// Tapdance
|
||||
#define KC_EXC TD(TD_ESC)
|
||||
#define KC_ELCK TD(TD_ENDLOCK)
|
||||
#define KC_ALCK TD(TD_ALTLOCK)
|
||||
#define KC_MPNT TD(TD_PRINT)
|
||||
|
||||
// Custom Keycodes
|
||||
#define KC_ KC_TRNS
|
||||
#define _______ KC_TRNS
|
||||
#define XXXXXXX KC_NO
|
||||
#define KC_xxxx KC_NO
|
||||
|
||||
#define KC_LOWR LOWER
|
||||
#define KC_RASE RAISE
|
||||
#define KC_SUPR SUPER
|
||||
#define KC_RST RESET
|
||||
|
||||
// TapDance Keycodes
|
||||
#define KC_EXC TD_ESC
|
||||
// Key Combos
|
||||
#define KC_XCPY LCTL(KC_INS)
|
||||
#define KC_XINS LSFT(KC_INS)
|
||||
#define KC_CAD LCTL(LALT(KC_DEL))
|
||||
#define KC_XCAD LCTL(LALT(KC_DEL))
|
||||
#define KC_XLCK LGUI(KC_L)
|
||||
|
||||
// Macro Declarations
|
||||
#define KC_ROOT M(0)
|
||||
#define KC_PPLY M(1)
|
||||
#define KC_PSEF M(2)
|
||||
#define KC_XCPY M(3)
|
||||
#define KC_XINS M(4)
|
||||
#define KC_CAD M(5)
|
||||
#define UM_LOCK M(6)
|
||||
// Solenoid
|
||||
#define KC_STOG SOLENOID_TOG
|
||||
#define KC_SDM SOLENOID_DWELL_MINUS
|
||||
#define KC_SDP SOLENOID_DWELL_PLUS
|
||||
#define KC_SBON SOLENOID_BUZZ_ON
|
||||
#define KC_SBOF SOLENOID_BUZZ_OFF
|
||||
|
||||
// RGB and Backlighting
|
||||
#define KC_RGB RGB_TOG
|
||||
|
@ -67,10 +85,17 @@ enum user_solenoid {
|
|||
#define KC_RSAD RGB_SAD
|
||||
#define KC_RVAI RGB_VAI
|
||||
#define KC_RVAD RGB_VAD
|
||||
#define KC_MOD RGB_MOD
|
||||
#define KC_RMOD RGB_RMOD
|
||||
#define KC_RPLN RGB_M_P
|
||||
#define KC_RBTH RGB_M_B
|
||||
#define KC_BLT BL_TOGG
|
||||
#define KC_BLS BL_STEP
|
||||
#define KC_BLI BL_INC
|
||||
#define KC_BLD BL_DEC
|
||||
#define KC_BLB BL_BRTG
|
||||
#define KC_BLON BL_ON
|
||||
#define KB_BLOF BL_OFF
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue