2018-05-31 15:30:05 +00:00
|
|
|
#ifndef USERSPACE
|
|
|
|
#define USERSPACE
|
|
|
|
|
|
|
|
#include "quantum.h"
|
|
|
|
|
2018-06-20 22:13:00 +00:00
|
|
|
// Layers
|
|
|
|
enum user_enum {
|
|
|
|
// Layers
|
2018-05-31 15:30:05 +00:00
|
|
|
QWERTY = SAFE_RANGE,
|
|
|
|
LOWER,
|
|
|
|
RAISE,
|
|
|
|
SUPER,
|
|
|
|
ADJUST,
|
2018-06-20 22:13:00 +00:00
|
|
|
// Solenoid
|
|
|
|
SOLENOID_TOG,
|
|
|
|
SOLENOID_DWELL_MINUS,
|
|
|
|
SOLENOID_DWELL_PLUS,
|
|
|
|
SOLENOID_BUZZ_ON,
|
|
|
|
SOLENOID_BUZZ_OFF,
|
2018-05-31 15:30:05 +00:00
|
|
|
};
|
|
|
|
|
2018-06-20 22:13:00 +00:00
|
|
|
// Macro / Send String
|
|
|
|
enum user_macros {
|
|
|
|
ROOT,
|
|
|
|
PPLY,
|
|
|
|
PSEF,
|
|
|
|
};
|
|
|
|
|
|
|
|
// TapDance
|
2018-05-31 15:30:05 +00:00
|
|
|
enum user_tapdance {
|
|
|
|
TD_ENDLOCK,
|
|
|
|
TD_ALTLOCK,
|
2018-06-20 22:13:00 +00:00
|
|
|
TD_PRINT,
|
2018-05-31 15:30:05 +00:00
|
|
|
TD_ESC,
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2018-06-20 22:13:00 +00:00
|
|
|
// 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)
|
2018-05-31 15:30:05 +00:00
|
|
|
|
2018-06-20 22:13:00 +00:00
|
|
|
// 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
|
2018-05-31 15:30:05 +00:00
|
|
|
#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
|
|
|
|
|
2018-06-20 22:13:00 +00:00
|
|
|
// 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)
|
2018-05-31 15:30:05 +00:00
|
|
|
|
2018-06-20 22:13:00 +00:00
|
|
|
// 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
|
2018-05-31 15:30:05 +00:00
|
|
|
|
|
|
|
// RGB and Backlighting
|
|
|
|
#define KC_RGB RGB_TOG
|
|
|
|
#define KC_RHUI RGB_HUI
|
|
|
|
#define KC_RHUD RGB_HUD
|
|
|
|
#define KC_RSAI RGB_SAI
|
|
|
|
#define KC_RSAD RGB_SAD
|
|
|
|
#define KC_RVAI RGB_VAI
|
|
|
|
#define KC_RVAD RGB_VAD
|
2018-06-20 22:13:00 +00:00
|
|
|
#define KC_MOD RGB_MOD
|
|
|
|
#define KC_RMOD RGB_RMOD
|
|
|
|
#define KC_RPLN RGB_M_P
|
|
|
|
#define KC_RBTH RGB_M_B
|
2018-05-31 15:30:05 +00:00
|
|
|
#define KC_BLT BL_TOGG
|
|
|
|
#define KC_BLS BL_STEP
|
|
|
|
#define KC_BLI BL_INC
|
|
|
|
#define KC_BLD BL_DEC
|
2018-06-20 22:13:00 +00:00
|
|
|
#define KC_BLB BL_BRTG
|
|
|
|
#define KC_BLON BL_ON
|
2018-09-26 19:23:30 +00:00
|
|
|
#define KC_BLOF BL_OFF
|
2018-05-31 15:30:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|