-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add colemak/colemak-dh support
Co-authored-by: tris203 <[email protected]>
- Loading branch information
Showing
6 changed files
with
119 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
local M = {} | ||
-- TODO: Make this dynamic, loading from the keyboards directory | ||
|
||
---@alias HawtKeySupportedKeyboardLayouts "qwerty" | "colemak" | "colemak-dh" | ||
|
||
M.qwerty = require("hawtkeys.keyboards.qwerty").layout | ||
M.colemak = require("hawtkeys.keyboards.colemak").layout | ||
M.colemakdh = require("hawtkeys.keyboards.colemak-dh").layout | ||
|
||
return M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
local layout = { | ||
q = { finger = 1, row = 1, col = 1 }, | ||
w = { finger = 2, row = 1, col = 2 }, | ||
f = { finger = 3, row = 1, col = 3 }, | ||
p = { finger = 4, row = 1, col = 4 }, | ||
b = { finger = 4, row = 1, col = 5 }, | ||
j = { finger = 6, row = 1, col = 6 }, | ||
l = { finger = 6, row = 1, col = 7 }, | ||
u = { finger = 7, row = 1, col = 8 }, | ||
y = { finger = 7, row = 1, col = 9 }, | ||
|
||
a = { finger = 1, row = 2, col = 1 }, | ||
r = { finger = 2, row = 2, col = 2 }, | ||
s = { finger = 3, row = 2, col = 3 }, | ||
t = { finger = 3, row = 2, col = 4 }, | ||
g = { finger = 3, row = 2, col = 5 }, | ||
m = { finger = 6, row = 2, col = 6 }, | ||
n = { finger = 7, row = 2, col = 7 }, | ||
e = { finger = 7, row = 2, col = 8 }, | ||
i = { finger = 8, row = 2, col = 9 }, | ||
o = { finger = 8, row = 2, col = 10 }, | ||
|
||
z = { finger = 1, row = 3, col = 1 }, | ||
x = { finger = 3, row = 3, col = 2 }, | ||
c = { finger = 3, row = 3, col = 3 }, | ||
d = { finger = 3, row = 3, col = 4 }, | ||
v = { finger = 6, row = 3, col = 5 }, | ||
k = { finger = 6, row = 3, col = 6 }, | ||
h = { finger = 6, row = 3, col = 7 }, | ||
|
||
[" "] = { finger = 4, row = 4, col = 6 }, -- Spacebar | ||
} | ||
|
||
return { | ||
layout = layout, | ||
} | ||
|
||
-- https://colemakmods.github.io/mod-dh/ | ||
-- NOTE: Angled mode is not accounted for since that would involve moving punctuation | ||
|
||
------1-2-3-4-5-6-7-8-9-0 | ||
---1- q w f p b j l u y | ||
---2- a r s t g m n e i o | ||
---3- z x c d v k h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
local layout = { | ||
q = { finger = 1, row = 1, col = 1 }, | ||
w = { finger = 2, row = 1, col = 2 }, | ||
f = { finger = 3, row = 1, col = 3 }, | ||
p = { finger = 4, row = 1, col = 4 }, | ||
g = { finger = 4, row = 1, col = 5 }, | ||
j = { finger = 6, row = 1, col = 6 }, | ||
l = { finger = 6, row = 1, col = 7 }, | ||
u = { finger = 7, row = 1, col = 8 }, | ||
y = { finger = 7, row = 1, col = 9 }, | ||
|
||
a = { finger = 1, row = 2, col = 1 }, | ||
r = { finger = 2, row = 2, col = 2 }, | ||
s = { finger = 3, row = 2, col = 3 }, | ||
t = { finger = 3, row = 2, col = 4 }, | ||
d = { finger = 3, row = 2, col = 5 }, | ||
h = { finger = 6, row = 2, col = 6 }, | ||
n = { finger = 7, row = 2, col = 7 }, | ||
e = { finger = 7, row = 2, col = 8 }, | ||
i = { finger = 8, row = 2, col = 9 }, | ||
o = { finger = 8, row = 2, col = 10 }, | ||
|
||
z = { finger = 1, row = 3, col = 1 }, | ||
x = { finger = 3, row = 3, col = 2 }, | ||
c = { finger = 3, row = 3, col = 3 }, | ||
v = { finger = 3, row = 3, col = 4 }, | ||
b = { finger = 6, row = 3, col = 5 }, | ||
k = { finger = 6, row = 3, col = 6 }, | ||
m = { finger = 6, row = 3, col = 7 }, | ||
|
||
[" "] = { finger = 4, row = 4, col = 6 }, -- Spacebar | ||
} | ||
|
||
return { | ||
layout = layout, | ||
} | ||
|
||
-- https://colemak.com/ | ||
|
||
------1-2-3-4-5-6-7-8-9-0 | ||
---1- q w f p g j l u y | ||
---2- a r s t d h n e i o | ||
---3- z x c v b k m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters