-
Notifications
You must be signed in to change notification settings - Fork 0
/
karabiner.edn
161 lines (161 loc) · 4.95 KB
/
karabiner.edn
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
;; ! | means mandatory
;; # | means optional
;; C | left_command
;; T | left_control
;; O | left_option
;; S | left_shift
;; F | fn
;; Q | right_command
;; W | right_control
;; E | right_option
;; R | right_shift
;; P | caps_lock
;; !! | mandatory command + control + optional + shift (hyper)
;; ## | optional any
;; https://ke-complex-modifications.pqrs.org/#mouse_keys_mode_v4
{
:devices {
:mac [{:vendor_id 1452 :product_id 835}]
}
:profiles {
:Default {
:default true
:sim 40 ;; simultaneous_threshold_milliseconds (def: 50)
;; if keydown event for two different keys are pressed within :sim ms, the keypresses are considered simultaneous
:delay 150 ;; to_delayed_action_delay_milliseconds (def: 500)
;; after :delay ms, the key press is considered to be delayed (used for double-press macros)
:alone 500 ;; to_if_alone_timeout_milliseconds (def: 1000)
;; if keyup event comes within :alone ms from keydown, the key is not just pressed but held
:held 500 ;; to_if_held_down_threshold_milliseconds (def: 500)
}
} ;; profiles
:simlayers {
:sym-mode {:key :m }
:num-mode {:key :v }
:shiftnum-mode {:key :comma }
:web-mode {:key :c }
}
:main
[
{:des "zoooom"
:rules [
[:!Ocomma :!CSequal_sign]
[:!Operiod :!Chyphen]
]
}
{:des "simultanious keycombos"
:rules [
[:condi :mac]
[[:a :s] :left_control]
[[:s :d] :left_option]
[[:d :f] :left_command]
[[:s :d :f] :!Cleft_option]
[[:l :k] :right_option]
[[:k :j] :right_command]
[[:j :l] :return_or_enter]
[[:s :f] :tab]
[[:a :f] :escape]
[[:j :semicolon] :equal_sign]
]
}
{:des "mod mods"
:rules [
[:condi :mac]
[:caps_lock :left_control nil {:alone :escape}]
[:escape :left_control nil {:alone :escape}]
]
}
{:des "vim cursors"
:rules [
[:!Co :end]
[:!Ci :page_up]
[:!Cu :page_down]
[:!Cy :home]
[:!Ch :left_arrow]
[:!Cj :down_arrow]
[:!Ck :up_arrow]
[:!Cl :right_arrow]
[:!Csemicolon :!CS4]
]
}
{:des "amethyst"
:rules [
[:!Oj :!Of11]
[:!Ok :!Of10]
[:!Ol :!Of9]
[:!Osemicolon :!Of8]
[:!Om :!Cm]
[:!Ef :!Of11]
[:!Ed :!Of10]
[:!Es :!Of9]
[:!Ea :!Of8]
]
}
{:des "sym mode"
:rules [
[:condi :mac]
[:e :!Sopen_bracket :sym-mode]
[:r :!Sclose_bracket :sym-mode]
[:d :!S9 :sym-mode]
[:f :!S0 :sym-mode]
[:c :open_bracket :sym-mode]
[:v :close_bracket :sym-mode]
[:s :quote :sym-mode]
[:w :!Squote :sym-mode]
[:a :hyphen :sym-mode]
[:q :!Shyphen :sym-mode]
[:g :!Sbackslash :sym-mode]
[:t :backslash :sym-mode]
[:x :grave_accent_and_tilde :sym-mode]
[:z :!Sgrave_accent_and_tilde :sym-mode]
[:b :!Sequal_sign :sym-mode]
]
}
{:des "num mode"
:rules [
[:condi :mac]
[:m :1 :num-mode]
[:comma :2 :num-mode]
[:period :3 :num-mode]
[:j :4 :num-mode]
[:k :5 :num-mode]
[:l :6 :num-mode]
[:u :7 :num-mode]
[:i :8 :num-mode]
[:o :9 :num-mode]
[:p :0 :num-mode]
[:d :left_command :num-mode]
[:s :left_option :num-mode]
[:y :backslash :num-mode]
[:h :!Sbackslash :num-mode]
[:c :left_command :num-mode]
[:x :left_option :num-mode]
]
}
{:des "shiftnum mode"
:rules [
[:condi :mac]
[:x :!S1 :shiftnum-mode]
[:c :!S2 :shiftnum-mode]
[:v :!S3 :shiftnum-mode]
[:s :!S4 :shiftnum-mode]
[:d :!S5 :shiftnum-mode]
[:f :!S6 :shiftnum-mode]
[:w :!S7 :shiftnum-mode]
[:e :!S8 :shiftnum-mode]
[:r :!S9 :shiftnum-mode]
[:t :!S0 :shiftnum-mode]
]
}
{:des "web mode"
:rules [
[:condi :mac]
[:j :equal_sign :web-mode]
[:k :!Speriod :web-mode]
[:m :!Scomma :web-mode]
[:comma :!Speriod :web-mode]
[:period :slash :web-mode]
]
}
]
}