Skip to content

Commit b237bb8

Browse files
committed
Add extra description for HRM
1 parent 4de9419 commit b237bb8

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<div class="home-row-mods">
2+
<p style="margin-top: 20px; font-weight: bold">HRM: Home Row Mods ⌃⌥⌘⇧</p>
3+
4+
<p>
5+
Use home row keys as modifiers<br />
6+
This mod is generated using https://github.com/gregorias/karabiner.ts-greg-mods
7+
</p>
8+
9+
<b>Key bindings:</b>
10+
<ul>
11+
12+
<li><kbd>a</kbd> or <kbd>;</kbd> for <kbd></kbd></li>
13+
<li><kbd>s</kbd> or <kbd>l</kbd> for <kbd></kbd></li>
14+
<li><kbd>d</kbd> or <kbd>k</kbd> for <kbd></kbd></li>
15+
<li><kbd>f</kbd> or <kbd>j</kbd> for <kbd></kbd></li>
16+
</ul>
17+
18+
<code>
19+
import { rule, writeToProfile } from "karabiner.ts";
20+
import { hrm } from "karabiner.ts-greg-mods";
21+
22+
writeToProfile("Default profile", [
23+
rule("Home row mods").manipulators(
24+
hrm(
25+
new Map([
26+
["a", "l⌃"],
27+
["s", "l⌥"],
28+
["d", "l⌘"],
29+
["f", "l⇧"],
30+
31+
["j", "r⇧"],
32+
["k", "r⌘"],
33+
["l", "r⌥"],
34+
[";", "r⌃"]
35+
])
36+
).build()
37+
)
38+
]);
39+
</code>
40+
41+
</div>

public/groups.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,8 @@
720720
"path": "json/swap_cmd_option_unless_apple.json"
721721
},
722722
{
723-
"path": "json/home_row_mods.json"
723+
"path": "json/home_row_mods.json",
724+
"extra_description_path": "extra_descriptions/home_row_mods.html"
724725
}
725726
]
726727
},

0 commit comments

Comments
 (0)