2019-09-21 20:04:27 +02: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)
|
2021-02-28 07:07:55 +01:00
|
|
|
#define MT_BSPC SFT_T(KC_BSPC)
|
|
|
|
#define MT_ESC LGUI_T(KC_ESC)
|
2022-09-19 01:10:50 +02:00
|
|
|
#define MT_A LGUI_T(KC_A)
|
|
|
|
#define MT_S LALT_T(KC_S)
|
|
|
|
#define MT_D LSFT_T(KC_D)
|
|
|
|
#define MT_F LCTL_T(KC_F)
|
|
|
|
#define MT_J RCTL_T(KC_J)
|
|
|
|
#define MT_K RSFT_T(KC_K)
|
|
|
|
#define MT_L RALT_T(KC_L)
|
|
|
|
#define MT_SCLN RGUI_T(KC_SCLN)
|
2019-09-21 20:04:27 +02:00
|
|
|
|
2022-11-20 09:27:45 +01:00
|
|
|
// layer-tap keys
|
|
|
|
#if defined KEYBOARD_planck_light \
|
|
|
|
|| defined KEYBOARD_planck_rev3 \
|
|
|
|
|| defined KEYBOARD_planck_rev6 \
|
|
|
|
|| defined KEYBOARD_keyboardio_atreus
|
|
|
|
#define LT_G LT(LWR, KC_G)
|
|
|
|
#define LT_H LT(RSE, KC_H)
|
|
|
|
#elif defined KEYBOARD_keyboardio_model01
|
|
|
|
#define LT_G LT(FUN, KC_G)
|
|
|
|
#define LT_H LT(FUN, KC_H)
|
|
|
|
#else
|
|
|
|
#define LT_G KC_G
|
|
|
|
#define LT_H KC_H
|
|
|
|
#endif
|
|
|
|
|
2019-11-04 22:47:52 +01:00
|
|
|
// LED/RGB controls
|
2022-11-20 09:27:45 +01:00
|
|
|
#if defined KEYBOARD_planck_light
|
2019-09-21 20:04:27 +02:00
|
|
|
#define LGT_TOG RGB_TOG
|
|
|
|
#define LGT_MOD RGB_MOD
|
2019-09-25 18:21:07 +02:00
|
|
|
#define LGT_BRT _______
|
2019-11-04 22:47:52 +01:00
|
|
|
#define LGT_INC RGB_HUI
|
|
|
|
#define LGT_DEC RGB_HUD
|
2022-11-20 09:27:45 +01:00
|
|
|
#elif defined KEYBOARD_planck_rev3
|
2019-09-21 20:04:27 +02:00
|
|
|
#define LGT_TOG BL_TOGG
|
|
|
|
#define LGT_MOD BL_STEP
|
2019-09-25 18:21:07 +02:00
|
|
|
#define LGT_BRT BL_BRTG
|
2023-01-29 17:44:16 +01:00
|
|
|
#define LGT_INC BL_UP
|
|
|
|
#define LGT_DEC BL_DOWN
|
2022-11-20 09:27:45 +01:00
|
|
|
#else
|
2019-09-25 18:21:07 +02:00
|
|
|
#define LGT_TOG _______
|
|
|
|
#define LGT_MOD _______
|
|
|
|
#define LGT_BRT _______
|
2019-11-04 22:47:52 +01:00
|
|
|
#define LGT_INC _______
|
|
|
|
#define LGT_DEC _______
|
2019-09-21 20:04:27 +02:00
|
|
|
#endif
|
|
|
|
|
2019-09-25 18:21:07 +02:00
|
|
|
enum layers { DEF, LWR, RSE, FUN };
|