Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Half-QWERTY layout to examples/ #777

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions examples/half-qwerty.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# NOTE: to use this, rename this file to default.conf and put in /etc/keyd/
#
# Half-QWERTY emulation example. This is useful for one-handed typing.

[ids]

*

[main]

# Maps capslock to escape when pressed and control when held.
capslock = overload(control, esc)

# Space becomes a modifier when pressed in combination with another key,
# otherwise outputs a regular space character. When this modifier is used, the
# keys are mirrored to the other half of the keyboard.
space = overload(mirroring, space)

# Single quote becomes Ctrl when combined.
' = overload(control, ')

# Alt+Tab is a common combination for switcing windows. When typing with the
# right hand it requires pressing space+[+Alt. Adding F12 as another Tab makes
# it easier.
f12 = tab

[mirroring]
6 = 5
7 = 4
8 = 3
9 = 2
0 = 1
- = `

h = g
j = f
k = d
l = s
semicolon = a

y = t
u = r
i = e
o = w
p = q
[ = tab
] = tab
\ = esc

n = b
m = v
, = c
. = x
/ = z

1 = 0
2 = 9
3 = 8
4 = 7
5 = 6

tab = delete
q = p
w = o
e = i
r = u
t = y

a = ;
s = l
d = k
f = j
g = h

z = /
x = .
c = ,
v = m
b = n

# TODO: Map space+capslock to return. The naive approach below does not work.
# capslock = return