summaryrefslogtreecommitdiffstats
path: root/.config/keyd/default.conf
blob: 9d27c07fcdc5d6f830950709c76972a2eef9c731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Apply config to all keyboards
[ids]
*

# Tap CapsLock for Escape, hold it for Control.
#
# Right control is mapped to the compose key:
#   - leftcontrol is bound to emit altgr (rightalt)
#   - rightalt is bound to the compose key (in KDE shortcuts)
# This works well since I don't use altgr/rightalt
[main]
capslock = overload(control, esc)
leftcontrol = layer(altgr)
rightalt = layer(nav)

[nav]
l = pageup
; = pagedown
m = left
k = up
. = right
, = down

# CTRL+M        Enter
# CTRL+;        Delete
# CTRL+H        Backspace
[control]
m = enter
; = delete
h = backspace

# capslock+rightalt+m outputs CTRL+Left and not rightalt+enter
# capslock+rightalt+; outputs CTRL+PageUp and not rightalt+delete
[control+nav]
m = C-left
; = C-pagedown