Skip to content

Commit 1826948

Browse files
authored
feat(layout): add Tarmak layouts (@siily-g) (monkeytypegame#6574)
### Description The tarmak layout(s) is a set of transition layouts for qwerty user switching to colemak, it changes only about 3-4 keys for every stage. [More about tarmak](https://dreymar.colemak.org/tarmak-intro.html) ### Checks - [ ] Adding quotes? - [ ] Make sure to include translations for the quotes in the description (or another comment) so we can verify their content. - [ ] Adding a language? - Make sure to follow the [languages documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/LANGUAGES.md) - [ ] Add language to `packages/contracts/src/schemas/languages.ts` - [ ] Add language to exactly one group in `frontend/src/ts/constants/languages.ts` - [ ] Add language json file to `frontend/static/languages` - [ ] Adding a theme? - Make sure to follow the [themes documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/THEMES.md) - [ ] Add theme to `packages/contracts/src/schemas/themes.ts` - [ ] Add theme to `frontend/src/ts/constants/themes.ts` - [ ] Add theme css file to `frontend/static/themes` - [x] Adding a layout? - [x] Make sure to follow the [layouts documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/LAYOUTS.md) - [x] Add layout to `packages/contracts/src/schemas/layouts.ts` - [x] Add layout json file to `frontend/static/layouts` - [x] Check if any open issues are related to this PR; if so, be sure to tag them below. - [x] Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info) - [x] Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title.
1 parent 4fe11ac commit 1826948

File tree

5 files changed

+161
-1
lines changed

5 files changed

+161
-1
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"keymapShowTopRow": false,
3+
"type": "ansi",
4+
"keys": {
5+
"row1": [
6+
"`~",
7+
"1!",
8+
"2@",
9+
"3#",
10+
"4$",
11+
"5%",
12+
"6^",
13+
"7&",
14+
"8*",
15+
"9(",
16+
"0)",
17+
"-_",
18+
"=+"
19+
],
20+
"row2": [
21+
"qQ",
22+
"wW",
23+
"jJ",
24+
"rR",
25+
"tT",
26+
"yY",
27+
"uU",
28+
"iI",
29+
"oO",
30+
"pP",
31+
"[{",
32+
"]}",
33+
"\\|"
34+
],
35+
"row3": ["aA", "sS", "dD", "fF", "gG", "hH", "nN", "eE", "lL", ";:", "'\""],
36+
"row4": ["zZ", "xX", "cC", "vV", "bB", "kK", "mM", ",<", ".>", "/?"],
37+
"row5": [" "]
38+
}
39+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"keymapShowTopRow": false,
3+
"type": "ansi",
4+
"keys": {
5+
"row1": [
6+
"`~",
7+
"1!",
8+
"2@",
9+
"3#",
10+
"4$",
11+
"5%",
12+
"6^",
13+
"7&",
14+
"8*",
15+
"9(",
16+
"0)",
17+
"-_",
18+
"=+"
19+
],
20+
"row2": [
21+
"qQ",
22+
"wW",
23+
"fF",
24+
"rR",
25+
"gG",
26+
"yY",
27+
"uU",
28+
"iI",
29+
"oO",
30+
"pP",
31+
"[{",
32+
"]}",
33+
"\\|"
34+
],
35+
"row3": ["aA", "sS", "dD", "tT", "jJ", "hH", "nN", "eE", "lL", ";:", "'\""],
36+
"row4": ["zZ", "xX", "cC", "vV", "bB", "kK", "mM", ",<", ".>", "/?"],
37+
"row5": [" "]
38+
}
39+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"keymapShowTopRow": false,
3+
"type": "ansi",
4+
"keys": {
5+
"row1": [
6+
"`~",
7+
"1!",
8+
"2@",
9+
"3#",
10+
"4$",
11+
"5%",
12+
"6^",
13+
"7&",
14+
"8*",
15+
"9(",
16+
"0)",
17+
"-_",
18+
"=+"
19+
],
20+
"row2": [
21+
"qQ",
22+
"wW",
23+
"fF",
24+
"jJ",
25+
"gG",
26+
"yY",
27+
"uU",
28+
"iI",
29+
"oO",
30+
"pP",
31+
"[{",
32+
"]}",
33+
"\\|"
34+
],
35+
"row3": ["aA", "rR", "sS", "tT", "dD", "hH", "nN", "eE", "lL", ";:", "'\""],
36+
"row4": ["zZ", "xX", "cC", "vV", "bB", "kK", "mM", ",<", ".>", "/?"],
37+
"row5": [" "]
38+
}
39+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"keymapShowTopRow": false,
3+
"type": "ansi",
4+
"keys": {
5+
"row1": [
6+
"`~",
7+
"1!",
8+
"2@",
9+
"3#",
10+
"4$",
11+
"5%",
12+
"6^",
13+
"7&",
14+
"8*",
15+
"9(",
16+
"0)",
17+
"-_",
18+
"=+"
19+
],
20+
"row2": [
21+
"qQ",
22+
"wW",
23+
"fF",
24+
"pP",
25+
"gG",
26+
"jJ",
27+
"uU",
28+
"iI",
29+
"yY",
30+
";:",
31+
"[{",
32+
"]}",
33+
"\\|"
34+
],
35+
"row3": ["aA", "rR", "sS", "tT", "dD", "hH", "nN", "eE", "lL", "oO", "'\""],
36+
"row4": ["zZ", "xX", "cC", "vV", "bB", "kK", "mM", ",<", ".>", "/?"],
37+
"row5": [" "]
38+
}
39+
}

packages/contracts/src/schemas/layouts.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,11 @@ export const LayoutNameSchema = z.enum([
213213
"ergopti",
214214
"sword",
215215
"opy",
216+
"tarmak_1",
217+
"tarmak_2",
218+
"tarmak_3",
219+
"tarmak_4",
216220
]
217221
);
218222

219-
export type LayoutName = z.infer<typeof LayoutNameSchema>;
223+
export type LayoutName = z.infer<typeof LayoutNameSchema>;

0 commit comments

Comments
 (0)