mirror of
https://github.com/ClaytonWWilson/miryoku_zmk.git
synced 2025-12-13 17:58:47 +00:00
42 lines
999 B
C
42 lines
999 B
C
// Copyright 2021 Manna Harbour
|
|
// https://github.com/manna-harbour/miryoku
|
|
|
|
#pragma once
|
|
|
|
#include "miryoku_babel/miryoku_layer_names.h"
|
|
#include "miryoku_babel/miryoku_layer.h"
|
|
|
|
#define U_MACRO_VA_ARGS(macro, ...) macro(__VA_ARGS__)
|
|
|
|
#define U_NP &none // key is not present
|
|
#define U_NA &none // present but not available for use
|
|
#define U_NU &none // available but not used
|
|
|
|
#if defined MIRYOKU_CLIPBOARD_FUN
|
|
#define U_RDO &kp K_AGAIN
|
|
#define U_PST &kp K_PASTE
|
|
#define U_CPY &kp K_COPY
|
|
#define U_CUT &kp K_CUT
|
|
#define U_UND &kp K_UNDO
|
|
#elif defined MIRYOKU_CLIPBOARD_MAC
|
|
#define U_RDO &kp LS(LG(Z))
|
|
#define U_PST &kp LG(V)
|
|
#define U_CPY &kp LG(C)
|
|
#define U_CUT &kp LG(X)
|
|
#define U_UND &kp LG(Z)
|
|
#elif defined MIRYOKU_CLIPBOARD_WIN
|
|
#define U_RDO &kp LC(Y)
|
|
#define U_PST &kp LC(V)
|
|
#define U_CPY &kp LC(C)
|
|
#define U_CUT &kp LC(X)
|
|
#define U_UND &kp LC(Z)
|
|
#else
|
|
#define U_RDO &kp K_AGAIN
|
|
#define U_PST &kp LS(INS)
|
|
#define U_CPY &kp LC(INS)
|
|
#define U_CUT &kp LS(DEL)
|
|
#define U_UND &kp K_UNDO
|
|
#endif
|
|
|
|
|