-
Notifications
You must be signed in to change notification settings - Fork 36
Keyboard layout files
Luca Weiss edited this page Jun 25, 2018
·
3 revisions
The custom editor uses json files that describe the different keys on the keyboard.
These files are located at data/matrix_layouts/
in the repository or at /usr/share/razergenie/matrix_layouts/
in the file system (when installed).
The number trailing the filename is the width of the LED matrix that device has.
The file is built as follows:
{
"en_US": {
"row0": [
{"label": "esc", "matrix": [0, 1], "disabled": true, "width": 80},
...
],
...
},
...
}
Notes:
- Possible keys for the key objects is
label
(what's shown in the custom editor),matrix
(the position of the key in the keyboard matrix),disabled
(if the button should be disabled) andwidth
(the width of the button in the custom editor). - The root object contains keys of the language code of that keyboard (e.g.
en_US
,de_DE
) - for a full list see here. - The row objects are commonly named
row0
,row1
...row5
, but technically could be anything.