Tips VIA에서 하나의 키에 두 개의 키를 할당하는 방법(ex. 캡스락에 한영키,레이어1)

VIA / VIAL 둘다 사용해보니 VIAL이 더 좋게 느껴지네요. 세컨 키보드 중 하나를 장난감용으로 이리저리 사용해보고 있는데 중국산 싸구려 호환 기판이라 VIA만 가능하고 VIAL Bin 파일이 있어도 플래시가 안되어 어쩔 수 없이 VIA만 사용하던 중에 VIAL과 Key Code가 좀 달라서 삽질을 조금 했습니다.
저는 Capslock키를 한영전환 / 레이어1 전환 둘다 적용해서 사용합니다.
VIA에서 적용하려면
- 캡스락 선택
- Any키 할당
- LM(1,MOD_LALT) 혹은 LT(1,KC_CAPS)
하면 됩니다.
저는 아래처럼 활용합니다.
캡스락 + C를 누르면 복사하기 = C에 Any 할당하고 C(KC_C) 입력
붙여넣기는 KC_V하면 되겠죠
아래 공식 설명을 참고하세요. qmk_firmware/docs/feature_advanced_keycodes.md at master · qmk/qmk_firmware · GitHub
Modifier Keys {#modifier-keys}
These allow you to combine a modifier with a keycode. When pressed, the keydown event for the modifier, then kc
will be sent. On release, the keyup event for kc
, then the modifier will be sent.
Key | Aliases | Description |
---|---|---|
LCTL(kc) |
C(kc) |
Hold Left Control and press kc |
LSFT(kc) |
S(kc) |
Hold Left Shift and press kc |
LALT(kc) |
A(kc) , LOPT(kc) |
Hold Left Alt and press kc |
LGUI(kc) |
G(kc) , LCMD(kc) , LWIN(kc) |
Hold Left GUI and press kc |
RCTL(kc) |
Hold Right Control and press kc |
|
RSFT(kc) |
Hold Right Shift and press kc |
|
RALT(kc) |
ROPT(kc) , ALGR(kc) |
Hold Right Alt and press kc |
RGUI(kc) |
RCMD(kc) , LWIN(kc) |
Hold Right GUI and press kc |
LSG(kc) |
SGUI(kc) , SCMD(kc) , SWIN(kc) |
Hold Left Shift and GUI and press kc |
LAG(kc) |
Hold Left Alt and Left GUI and press kc |
|
RSG(kc) |
Hold Right Shift and Right GUI and press kc |
|
RAG(kc) |
Hold Right Alt and Right GUI and press kc |
|
LCA(kc) |
Hold Left Control and Alt and press kc |
|
LSA(kc) |
Hold Left Shift and Left Alt and press kc |
|
RSA(kc) |
SAGR(kc) |
Hold Right Shift and Right Alt (AltGr) and press kc |
RCS(kc) |
Hold Right Control and Right Shift and press kc |
|
LCAG(kc) |
Hold Left Control, Alt and GUI and press kc |
|
MEH(kc) |
Hold Left Control, Shift and Alt and press kc |
|
HYPR(kc) |
Hold Left Control, Shift, Alt and GUI and press kc |
You can also chain them, for example LCTL(LALT(KC_DEL))
or C(A(KC_DEL))
makes a key that sends Control+Alt+Delete with a single keypress.