2019-09-22 00:04:27 +06:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// one-shot layer keys
|
|
|
|
#define OSL_RSE OSL(RSE)
|
|
|
|
#define OSL_LWR OSL(LWR)
|
|
|
|
#define OSL_FUN OSL(FUN)
|
|
|
|
|
|
|
|
// one-shot modifier keys
|
|
|
|
#define OSMLCTL OSM(MOD_LCTL)
|
|
|
|
#define OSMRCTL OSM(MOD_RCTL)
|
|
|
|
#define OSMLALT OSM(MOD_LALT)
|
|
|
|
#define OSMRALT OSM(MOD_RALT)
|
|
|
|
#define OSMLSFT OSM(MOD_LSFT)
|
|
|
|
#define OSMRSFT OSM(MOD_RSFT)
|
|
|
|
|
|
|
|
// mod-tap keys
|
|
|
|
#define MT_SPC SFT_T(KC_SPC)
|
|
|
|
|
2019-11-05 03:47:52 +06:00
|
|
|
// LED/RGB controls
|
2019-09-22 00:04:27 +06:00
|
|
|
#ifdef KEYBOARD_planck_light
|
|
|
|
#define LGT_TOG RGB_TOG
|
|
|
|
#define LGT_MOD RGB_MOD
|
2019-09-25 22:21:07 +06:00
|
|
|
#define LGT_BRT _______
|
2019-11-05 03:47:52 +06:00
|
|
|
#define LGT_INC RGB_HUI
|
|
|
|
#define LGT_DEC RGB_HUD
|
2019-09-25 22:21:07 +06:00
|
|
|
#endif
|
|
|
|
#ifdef KEYBOARD_planck_rev3
|
2019-09-22 00:04:27 +06:00
|
|
|
#define LGT_TOG BL_TOGG
|
|
|
|
#define LGT_MOD BL_STEP
|
2019-09-25 22:21:07 +06:00
|
|
|
#define LGT_BRT BL_BRTG
|
2019-11-05 03:47:52 +06:00
|
|
|
#define LGT_INC BL_INC
|
|
|
|
#define LGT_DEC BL_DEC
|
2019-09-25 22:21:07 +06:00
|
|
|
#endif
|
|
|
|
#ifdef KEYBOARD_planck_rev6
|
|
|
|
#define LGT_TOG _______
|
|
|
|
#define LGT_MOD _______
|
|
|
|
#define LGT_BRT _______
|
2019-11-05 03:47:52 +06:00
|
|
|
#define LGT_INC _______
|
|
|
|
#define LGT_DEC _______
|
2019-09-22 00:04:27 +06:00
|
|
|
#endif
|
|
|
|
|
2019-09-25 22:21:07 +06:00
|
|
|
enum layers { DEF, LWR, RSE, FUN };
|