Skip to content

Commit 645c03e

Browse files
committed
Split picker.json from keysym label mapping
This will allow parts of the picker to be defined without this style of section, and also lays the groundwork for showing different labels for international keyboard layouts. How/if to translate is still unclear.
1 parent 7b3ae90 commit 645c03e

File tree

7 files changed

+370
-693
lines changed

7 files changed

+370
-693
lines changed

layouts/keysym/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
`base.json` should include keys that are displayed the same way regardless of layout, while `en_us.json` has those for the English US layout that may differ in another layout.
2+
3+
If it turns out that something actually should/shouldn't differ between different layouts, it can be moved between `base.json` and layout specific files.

layouts/keysym/base.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"F1": "F1",
3+
"F2": "F2",
4+
"F3": "F3",
5+
"F4": "F4",
6+
"F5": "F5",
7+
"F6": "F6",
8+
"F7": "F7",
9+
"F8": "F8",
10+
"F9": "F9",
11+
"F10": "F10",
12+
"F11": "F11",
13+
"F12": "F12",
14+
"F13": "F13",
15+
"F14": "F14",
16+
"F15": "F15",
17+
"F16": "F16",
18+
"F17": "F17",
19+
"F18": "F18",
20+
"F19": "F19",
21+
"F20": "F20",
22+
"F21": "F21",
23+
"F22": "F22",
24+
"F23": "F23",
25+
"F24": "F24",
26+
"LEFT": "Left",
27+
"UP": "Up",
28+
"DOWN": "Down",
29+
"RIGHT": "Right",
30+
"HOME": "Home",
31+
"PGUP": "PgUp",
32+
"PGDN": "PgDn",
33+
"END": "End",
34+
"RESET": "Reset",
35+
"ROLL_OVER": "Reuse",
36+
"NONE": "None",
37+
"MUTE": "Mute",
38+
"VOLUME_UP": "Vol Up",
39+
"VOLUME_DOWN": "Vol Down",
40+
"PLAY_PAUSE": "Play Pause",
41+
"MEDIA_NEXT": "Next Track",
42+
"MEDIA_PREV": "Prev Track",
43+
"FAN_TOGGLE": "Fan Toggle",
44+
"DISPLAY_TOGGLE": "Screen Toggle",
45+
"BRIGHTNESS_UP": "Screen Up",
46+
"BRIGHTNESS_DOWN": "Screen Down",
47+
"DISPLAY_MODE": "Screen Mode",
48+
"SUSPEND": "Suspend",
49+
"CAMERA_TOGGLE": "Camera Toggle",
50+
"AIRPLANE_MODE": "Airplane Mode",
51+
"TOUCHPAD": "Touchpad Toggle",
52+
"SYSTEM_POWER": "Power",
53+
"KBD_TOGGLE": "LED On Off",
54+
"KBD_UP": "LED Brighten",
55+
"KBD_DOWN": "LED Darken",
56+
"KBD_BKL": "LED Cycle",
57+
"KBD_COLOR": "LED Color",
58+
"LAYER_ACCESS_1": "Access Layer\u00a01",
59+
"FN": "Access Layer\u00a02",
60+
"LAYER_ACCESS_3": "Access Layer\u00a03",
61+
"LAYER_ACCESS_4": "Access Layer\u00a04",
62+
"LAYER_SWITCH_1": "Switch to\nLayer\u00a01",
63+
"LAYER_SWITCH_2": "Switch to\nLayer\u00a02",
64+
"LAYER_SWITCH_3": "Switch to\nLayer\u00a03",
65+
"LAYER_SWITCH_4": "Switch to\nLayer\u00a04",
66+
"MS_UP": "Mouse cursor up",
67+
"MS_DOWN": "Mouse cursor down",
68+
"MS_LEFT": "Mouse cursor left",
69+
"MS_RIGHT": "Mouse cursor right",
70+
"MS_BTN1": "Press button 1",
71+
"MS_BTN2": "Press button 2",
72+
"MS_BTN3": "Press button 3",
73+
"MS_BTN4": "Press button 4",
74+
"MS_BTN5": "Press button 5",
75+
"MS_BTN6": "Press button 6",
76+
"MS_BTN7": "Press button 7",
77+
"MS_BTN8": "Press button 8",
78+
"MS_WH_UP": "Move wheel up",
79+
"MS_WH_DOWN": "Move wheel down",
80+
"MS_WH_LEFT": "Move wheel left",
81+
"MS_WH_RIGHT": "Move wheel right",
82+
"MS_ACCEL0": "Set speed to 0",
83+
"MS_ACCEL1": "Set speed to 1",
84+
"MS_ACCEL2": "Set speed to 2"
85+
}

layouts/keysym/en_us.json

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"A": "A",
3+
"B": "B",
4+
"C": "C",
5+
"D": "D",
6+
"E": "E",
7+
"F": "F",
8+
"G": "G",
9+
"H": "H",
10+
"I": "I",
11+
"J": "J",
12+
"K": "K",
13+
"L": "L",
14+
"M": "M",
15+
"N": "N",
16+
"O": "O",
17+
"P": "P",
18+
"Q": "Q",
19+
"R": "R",
20+
"S": "S",
21+
"T": "T",
22+
"U": "U",
23+
"V": "V",
24+
"W": "W",
25+
"X": "X",
26+
"Y": "Y",
27+
"Z": "Z",
28+
"1": "!\n1",
29+
"2": "@\n2",
30+
"3": "#\n3",
31+
"4": "$\n4",
32+
"5": "%\n5",
33+
"6": "^\n6",
34+
"7": "&\n7",
35+
"8": "*\n8",
36+
"9": "(\n9",
37+
"0": ")\n0",
38+
"LEFT_ALT": "Left Alt",
39+
"LEFT_CTRL": "Left Ctrl",
40+
"LEFT_SHIFT": "Left Shift",
41+
"LEFT_SUPER": "Left Super",
42+
"RIGHT_ALT": "Right Alt",
43+
"RIGHT_CTRL": "Right Ctrl",
44+
"RIGHT_SHIFT": "Right Shift",
45+
"RIGHT_SUPER": "Right Super",
46+
"ENTER": "Enter",
47+
"BKSP": "Bksp",
48+
"DEL": "Del",
49+
"TAB": "Tab",
50+
"SPACE": "Space",
51+
"CAPS": "Caps",
52+
"APP": "Menu",
53+
"ESC": "Esc",
54+
"PRINT_SCREEN": "PrtSc\nSysrq",
55+
"INSERT": "Ins",
56+
"SCROLL_LOCK": "Scroll Lock",
57+
"PAUSE": "Pause\nBreak",
58+
"NUM_LOCK": "Num Lock",
59+
"NUM_7": "7",
60+
"NUM_8": "8",
61+
"NUM_9": "9",
62+
"NUM_MINUS": "-",
63+
"NUM_PLUS": "+",
64+
"NUM_SLASH": "/",
65+
"NUM_4": "4",
66+
"NUM_5": "5",
67+
"NUM_6": "6",
68+
"NUM_ASTERISK": "*",
69+
"NUM_ENTER": "Enter",
70+
"NUM_0": "0",
71+
"NUM_1": "1",
72+
"NUM_2": "2",
73+
"NUM_3": "3",
74+
"NUM_PERIOD": ".",
75+
"TICK": "~\n`",
76+
"QUOTE": "\"\n'",
77+
"SEMICOLON": ":\n;",
78+
"MINUS": "_\n-",
79+
"EQUALS": "+\n=",
80+
"SLASH": "?\n/",
81+
"COMMA": "<\n,",
82+
"PERIOD": ">\n.",
83+
"BACKSLASH": "|\n\\",
84+
"BRACE_OPEN": "{\n[",
85+
"BRACE_CLOSE": "}\n]",
86+
"NONUS_HASH": "Non-US #",
87+
"NONUS_BSLASH": "Non-US \\"
88+
89+
}

0 commit comments

Comments
 (0)