This file contains the key code for keys to use with 2Keys. These go in the hotkeys
section in each keyboard. I.e:
keyboards:
keyboard_1:
hotkeys:
^A: HelloWorld # ^A means fire this hotkey when control + A is pushed
Symbol | |
---|---|
! | Alt |
^ | Control |
+ | Shift |
# | Windows key |
< | Left key (i.e. left control (<^ ), left shift (<+ )) |
> | Right key (i.e. right control (^> ), right Alt/AltGr (!> )) |
Used to denote special keys, such as UP, DOWN, RIGHT, LEFT arrow keys; CAPS (Caps Lock), TAB. Replace key with key name in caps | |
character | Used for all keys that are one character, except one's in table below (i.e. numpad) |
- SSH into the detector.
cd
to where your 2Keys project is stored.- Run
sudo bash ./.2Keys/register.sh stop
to stop the server. - Run
2Keys watch <keyboard_name>
, replacing<keyboard_name>
with the keyboard the key is on. - Press the key and see what mapping comes up, if any. See below if the mapping is blank.
- Restart the server with
sudo bash ./.2Keys/register.sh start
once you're done.
If no mapping comes up, note down the key code and add the following to config, under the keyboard with the key on:
keyboard:
keyboard_1: # Assuming that is the name
map:
C1: key_code # Note that C1 can be whatever you want it to be.
# I.e.:
C2: 42
You can now use this key by wrapping the value you set (i.e. C1
) in brackets:
keyboard:
keyboard_1: # Assuming that is the name
hotkeys:
(C1): HelloWorld
Symbol | Corresponding Key | Notes |
---|---|---|
Numpad asterisk | ||
Spacebar | ||
Backspace | ||
Tab | ||
Caps lock | ||
F1-F24 | Function keys | $ not required |
Enter | ||
Numlock | ||
Scrol Lock | ||
NUM1-9 | Numpad numbers | $ not required |
Numpad negative | ||
Numpad plus | ||
Numpad full stop | ||
The extra key on UK keyboard with ~ and # on | ||
Enter key on numpad | ||
Slash key on numpad | ||
Print screen/SysReq key | ||
Home key | ||
Arrow Up key | ||
Page Up key | ||
Left Arrow key | ||
Right arrow key | ||
End key | ||
Down arrow key | ||
Page down key | ||
Insert key | ||
Delete key | ||
Numpad equals | ||
Pause key (not symbol pause, word Pause) | ||
Numpad comma |