-
Notifications
You must be signed in to change notification settings - Fork 0
/
xps13.kbd
87 lines (68 loc) · 4.11 KB
/
xps13.kbd
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
;;kmonad config matching my Vortex Pok3r settings
(defcfg
;;XPS 13 keyboard
input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
output (uinput-sink "My KMonad output")
;; Unhandled events not to be emitted
fallthrough true
;; Set this to false to disable any command-execution in KMonad
allow-cmd false
)
(defalias
f4 (tap-hold-next 300 f4 caps)
caps (layer-toggle vi)
arrw (layer-toggle arrows)
)
;; XPS 13 keyboard layout source:
(defsrc
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 prnt ins del
` 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
caps a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
lctl lmet lalt spc ralt rctrl left up down rght
home pgup pgdn end
)
(deflayer default
esc f1 f2 f3 @f4 f5 f6 f7 f8 f9 f10 f11 f12 print ins del
` 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
@caps a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
lctl lmet lalt spc ralt rctrl left up down rght
home pgup pgdn end
)
;; Layer toggled with capslock:
(deflayer vi
esc f1 f2 f3 @f4 f5 f6 f7 f8 f9 f10 brdn brup print ins del
` f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 del
tab q w e r t home pgdn pgup end p [ ] \
- a vold volu mute g left down up rght ins ' ret
lsft z x c v b n m , . / rsft
lctl lmet lalt spc ralt rctrl left up down rght
home pgup pgdn end
)
(deflayer arrows
- - - - - - - - - - - - - - - -
- - - - - - - - - - - - - -
- - - - - - - pgdn up pgup - - - -
- - - - - - - left down rght - - -
- - - - - - - - - - - -
- - - - - - - - - -
- - - -
)
#| ------------------------------
(deflayer blank
- - - - - - - - - - - - - - - -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - -
- - - - - - - - - - - - -
- - - - - - - - - - - -
- - - - - - - - - -
- - - -
)
------------------------------ |#
#| --------------------------------
TODO:
- Enable keys for switchable layers (i.e. arrows layer)
|#