VIA Any Generater
Mod + Key
Generated Keycode: Copy
Layer
Generated Keycode: Copy
Mod-Tap1
Generated Keycode: Copy
Mod-Tap2
Generated Keycode: Copy
How to use the VIA Any Generator
This section describes how to use the VIA Any generator.
structure
The VIA Any Generator is a tool for easily setting up a function (Mod-Tap) to change the key output by “simultaneous pressing of two or more keys” or “short press and long press” on VIA.
The following three main functions are provided
VIA Any Generator Features
- Modifier + single key
- Used to set shortcut keys such as Ctrl+C (copy) and Ctrl+V (paste).
- Layer Transition + Single Key
- It is used to have two actions on one key, such as long press to move a layer, short press to BS (backspace), etc.
- Mod Tap
- It is used when one key has two actions, such as a long press for a specific Modifier key input and a short press for an alpha key. For example, with MT(KC_LCTL,KC_V), a long press will input “control” and a single press will input “V”.
These can be set from “Any” in the “SPECIAL” item of VIA ( https://usevia.app/#/).
treatment
Here, we generate code that allows the “copy” shortcut key to be executed with a single button.
- Under “Basekeys,” select “KC_C Key” for the copy.
- From “Modifier,” select “C Key” for “CTRL.
- Pressing the Gererate button will output the combined code below.
- Press the “Copy” button and paste it into the Any key code entry screen of the VIA Setup screen.
Quick Key Code Table
See the table below for what each key represents.
Information reference: https: //github.com/qmk/qmk_firmware/blob/master/docs/keycodes.md
BaseKeys▷▷
Description | Key |
---|---|
a and A | KC_A |
b and B | KC_B |
c and C | KC_C |
d and D | KC_D |
e and E | KC_E |
f and F | KC_F |
g and G | KC_G |
h and H | KC_H |
i and I | KC_I |
j and J | KC_J |
k and K | KC_K |
l and L | KC_L |
m and M | KC_M |
n and N | KC_N |
o and O | KC_O |
p and P | KC_P |
q and Q | KC_Q |
r and R | KC_R |
s and S | KC_S |
t and T | KC_T |
u and U | KC_U |
v and V | KC_V |
W and W | KC_W |
x and X | KC_X |
y and Y | KC_Y |
z and Z | KC_Z |
1 and ! | KC_1 |
2 and @ | KC_2 |
3 and # | KC_3 |
4 and $ | KC_4 |
5 and %. | KC_5 |
6 and ^ | KC_6 |
7 and & | KC_7 |
8 and * | KC_8 |
9 and ( | KC_9 |
0 and ) | KC_0 |
Return (Enter) | KC_ENT |
Escape | KC_ESC |
Delete (Backspace) | KC_BSPC |
Tab. | KC_TAB |
Spacebar | KC_SPC |
– and _ | KC_MINS |
= and + | KC_EQL |
[ and { | KC_LBRC |
] and } | KC_RBRC |
\frz24.89}} and | | KC_BSLS |
Non-US # and ~ | KC_NUHS |
; and :. | KC_SCLN |
‘ and “ | KC_QUOT |
` and ~ | KC_GRV |
and | KC_COMM |
. and > | KC_DOT |
/ and ? | KC_SLSH |
Caps Lock | KC_CAPS |
F1 | KC_F1 |
F2 | KC_F2 |
F3 | KC_F3 |
F4 | KC_F4 |
F5 | KC_F5 |
F6 | KC_F6 |
F7 | KC_F7 |
F8 | KC_F8 |
F9 | KC_F9 |
F10 | KC_F10 |
F11 | KC_F11 |
F12 | KC_F12 |
Print Screen | KC_PSCR |
Scroll Lock (macOS) | KC_SCRL |
BrightnesDown (macOS) | KC_BRMD |
Pause (macOS) | KC_PAUS |
Brightness Up (macOS) | KC_BRMU |
Insert | KC_INS |
Home | KC_HOME |
Page Up | KC_PGUP |
Forward Delete | KC_DEL |
End | KC_END |
Page Down | KC_PGDN |
Right Arrow | KC_RGHT |
Left Arrow | KC_LEFT |
Down Arrow | KC_DOWN |
Up Arrow | KC_UP |
Keypad Num Lock and Clear | KC_NUM |
Keypad / | KC_PSLS |
Keypad * | KC_PAST |
Keypad – | KC_PMNS |
Keypad + | KC_PPLS |
Keypad Enter | KC_PENT |
Keypad 1 and End | KC_P1 |
Keypad 2 and Down Arrow | KC_P2 |
Keypad 3 and Page Down | KC_P3 |
Keypad 4 and Left Arrow | KC_P4 |
Keypad 5 | KC_P5 |
Keypad 6 and Right Arrow | KC_P6 |
Keypad 7 and Home | KC_P7 |
Keypad 8 and Up Arrow | KC_P8 |
Keypad 9 and Page Up | KC_P9 |
Keypad 0 and Insert | KC_P0 |
Keypad . and Delete | KC_PDOT |
Non-US \cH0000002} and | | KC_NUBS |
Application (Windows Context Menu Key) | KC_APP |
System Power | KC_KB_POWER |
Keypad = | KC_PEQL |
F13 | KC_F13 |
F-14 | KC_F14 |
F15 | KC_F15 |
F-16 | KC_F16 |
F17 | KC_F17 |
F18 | KC_F18 |
F19 | KC_F19 |
F20 | KC_F20 |
F21 | KC_F21 |
F22 | KC_F22 |
F23 | KC_F23 |
F24 | KC_F24 |
Execute | KC_EXEC |
Help | KC_HELP |
Menu | KC_MENU |
Select | KC_SLCT |
Stop. | KC_STOP |
Again | KC_AGIN |
Undo | KC_UNDO |
Cut | KC_CUT |
Copy | KC_COPY |
Paste | KC_PSTE |
Find | KC_FIND |
Mute | KC_KB_MUTE |
Volume Up | KC_KB_VOLUME_UP |
Volume Down | KC_KB_VOLUME_DOWN |
Locking Caps Lock | KC_LCAP |
Locking Num Lock | KC_LNUM |
Locking Scroll Lock | KC_LSCR |
Keypad | KC_PCMM |
Keypad = on AS/400 keyboards | KC_KP_EQUAL_AS400 |
International 1 | KC_INT1 |
International 2 | KC_INT2 |
International 3 | KC_INT3 |
International 4 | KC_INT4 |
International 5 | KC_INT5 |
International 6 | KC_INT6 |
International 7 | KC_INT7 |
International 8 | KC_INT8 |
International 9 | KC_INT9 |
Language 1 | KC_LNG1 |
Language 2 | KC_LNG2 |
Language 3 | KC_LNG3 |
Language 4 | KC_LNG4 |
Language 5 | KC_LNG5 |
Language 6 | KC_LNG6 |
Language 7 | KC_LNG7 |
Language 8 | KC_LNG8 |
Language 9 | KC_LNG9 |
Alternate Erase | KC_ERAS |
SysReq/Attention | KC_SYRQ |
Cancel | KC_CNCL |
Clear. | KC_CLR |
Left Control | KC_LCTL |
Left Shift | KC_LSFT |
Left Alt (Option) | KC_LALT |
Left GUI (Windows/Command/Meta key) | KC_LGUI |
Right Control | KC_RCTL |
Right Shift | KC_RSFT |
Right Alt (Option/AltGr) | KC_RALT |
Right GUI (Windows/Command/Meta key) | KC_RGUI |
Modifier▷▷
Description | Key |
---|---|
Hold Left Control and press kc | C |
Hold Left Shift and press kc | sadist |
Hold Left Alt and press kc | A |
Hold Left GUI and press kc | g |
Hold Left Shift and Left GUI and press kc | SGUI |
Hold Left Alt and Left GUI and press kc | LAG |
Hold Right Shift and Right GUI and press kc | RSG |
Hold Right Alt and Right GUI and press kc | RAG |
Hold Left Control and Alt and press kc | LCA |
Hold Left Shift and Left Alt and press kc | LSA |
Hold Right Shift and Right Alt (AltGr) and press kc | SAGR |
Hold Right Control and Right Shift and press kc | RCS |
Hold Left Control Alt and GUI and press kc | LCAG |
Hold Left Control Shift and Alt and press kc | MEH |
Hold Left Control Shift Alt and GUI and press kc | HYPR |
Mod-Tap▷▷
Description | Key |
---|---|
Left Control when held kc when tapped | CTL_T |
Left Shift when held kc when tapped | SFT_T |
Left Alt when held kc when tapped | ALT_T |
Left GUI when held kc when tapped | GUI_T |
Right Control when held kc when tapped | RCTL_T |
Right Shift when held kc when tapped | RSFT_T |
Right Alt (AltGr) when held kc when tapped | RALT_T |
Right GUI when held kc when tapped | RGUI_T |
Left Shift and GUI when held kc when tapped | LSG_T |
Left Alt and GUI when held kc when tapped | LAG_T |
Right Shift and GUI when held kc when tapped | RSG_T |
Right Alt and GUI when held kc when tapped | RAG_T |
Left Control and Alt when held kc when tapped | LCA_T |
Left Shift and Left Alt when held kc when tapped | LSA_T |
Right Shift and Right Alt (AltGr) when held kc when tapped | RSA_T |
Right Control and Right Shift when held kc when tapped | RCS_T |
Left Control Alt and GUI when held kc when tapped | LCAG_T |
Right Control Alt and GUI when held kc when tapped | RCAG_T |
Left Control and Shift when held kc when tapped | C_S_T |
Left Control Shift and Alt when held kc when tapped | MEH_T |
Left Control Shift Alt and GUI when held kc when tapped | HYPR_T |
Layer▷▷
Description | Layer |
---|---|
Layer 0 | 0 |
Layer 1 | 1 |
Layer 2 | 2 |
Layer 3 | 3 |
Layer 4 | 4 |
Layer 5 | 5 |
Layer 6 | 6 |
Layer 7 | 7 |
Layer 8 | 8 |
Layer 9 | 9 |
Layer 10 | 10 |