2017-05-05 15:41:13 +02:00
|
|
|
#ifndef CONFIG_USER_H
|
|
|
|
#define CONFIG_USER_H
|
|
|
|
|
|
|
|
#include "../../config.h"
|
|
|
|
|
|
|
|
#define _______ KC_TRNS
|
|
|
|
#define XXXXXXX KC_NO
|
|
|
|
|
2017-05-25 12:08:17 +02:00
|
|
|
#define USB_MAX_POWER_CONSUMPTION 100
|
|
|
|
#define ONESHOT_TAP_TOGGLE 2
|
|
|
|
#define ONESHOT_TIMEOUT 500
|
|
|
|
|
|
|
|
#define MOUSEKEY_INTERVAL 20
|
|
|
|
#define MOUSEKEY_DELAY 0
|
|
|
|
#define MOUSEKEY_TIME_TO_MAX 40
|
|
|
|
#define MOUSEKEY_MAX_SPEED 7
|
|
|
|
#define MOUSEKEY_WHEEL_DELAY 0
|
2017-05-05 16:49:35 +02:00
|
|
|
|
2017-06-02 12:10:22 +02:00
|
|
|
// dynamic macro keys
|
2017-05-05 16:49:35 +02:00
|
|
|
#define DM_PLAY DYN_MACRO_PLAY1
|
|
|
|
#define DM_STRT DYN_REC_START1
|
|
|
|
#define DM_STOP DYN_REC_STOP
|
|
|
|
|
2017-06-02 12:10:22 +02:00
|
|
|
// one-shot layer keys
|
2017-05-05 16:49:35 +02:00
|
|
|
#define OSL_RSE OSL(RSE)
|
|
|
|
#define OSL_LWR OSL(LWR)
|
|
|
|
#define OSL_FUN OSL(FUN)
|
|
|
|
|
2017-06-02 12:10:22 +02:00
|
|
|
// one-shot modifier keys
|
2017-05-05 16:49:35 +02:00
|
|
|
#define OSM_CTL OSM(MOD_LCTL)
|
|
|
|
#define OSM_ALT OSM(MOD_LALT)
|
|
|
|
#define OSM_SFT OSM(MOD_LSFT)
|
|
|
|
|
2017-06-02 12:10:22 +02:00
|
|
|
// tap dance keys
|
|
|
|
#define TD_SCLN TD(TDK_SCLN)
|
|
|
|
#define TD_COMM TD(TDK_COMM)
|
|
|
|
#define TD_DOT TD(TDK_DOT)
|
|
|
|
#define TD_SLSH TD(TDK_SLSH)
|
|
|
|
|
2017-06-15 09:34:34 +02:00
|
|
|
// macros
|
2017-06-02 12:10:22 +02:00
|
|
|
#define ACTION_TAP_DANCE_FN_KEYCODE(user_fn, kc) { \
|
|
|
|
.fn = { NULL, user_fn, NULL }, \
|
|
|
|
.user_data = (void *)&((qk_tap_dance_pair_t) { kc, 0 }) \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define ACTION_TAP_DANCE_FN_KEYCODE2(user_fn, kc1, kc2) { \
|
|
|
|
.fn = { NULL, user_fn, NULL }, \
|
|
|
|
.user_data = (void *)&((qk_tap_dance_pair_t) { kc1, kc2 }) \
|
|
|
|
}
|
|
|
|
|
2017-06-15 09:34:34 +02:00
|
|
|
#define TAP(keycode) register_code16(keycode); unregister_code16(keycode)
|
2017-06-02 12:10:22 +02:00
|
|
|
|
2017-05-05 15:41:13 +02:00
|
|
|
#endif
|
|
|
|
|