-
Notifications
You must be signed in to change notification settings - Fork 0
/
ibm-model-m-mac.sc
47 lines (41 loc) · 917 Bytes
/
ibm-model-m-mac.sc
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
layerblock
FN1 1
endblock
# Base layer remaps
remapblock
layer 0
CAPS_LOCK FN1 # Make caps lock a function key
LALT LGUI # Make left alt a Cmd (Win) key
PAUSE SYSTEM_POWER # Top right corner power key
endblock
# Layer 1 mappings
remapblock
layer 1
H LEFT
J DOWN
K UP
L RIGHT
F1 F14 # Decrease Display Brightness
F2 F15 # Increase Display Brightness
F3 MEDIA_MUTE # Volume controls
F4 MEDIA_VOLUME_DOWN
F5 MEDIA_VOLUME_UP
endblock
macroblock
# LSHIFT + LGUI + LEFT = LALT + LGUI + LEFT
macro LEFT LGUI LSHIFT
push_meta set_meta LALT
push_meta clear_meta LSHIFT
press LEFT
pop_meta
pop_meta
endmacro
# LSHIFT + LGUI + RIGHT = LALT + LGUI + RIGHT
macro RIGHT LGUI LSHIFT
push_meta set_meta LALT
push_meta clear_meta LSHIFT
press RIGHT
pop_meta
pop_meta
endmacro
endblock