forked from stroebjo/autohotkey-windows-mac-keyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MacKeyboard.ahk
158 lines (109 loc) · 2.87 KB
/
MacKeyboard.ahk
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
;-----------------------------------------
; Mac keyboard to Windows Key Mappings
;=========================================
; --------------------------------------------------------------
; NOTES
; --------------------------------------------------------------
; ! = ALT
; ^ = CTRL
; + = SHIFT
; # = WIN
;
; Debug action snippet: MsgBox You pressed Control-A while Notepad is active.
#InstallKeybdHook
#SingleInstance force
SetTitleMatchMode 2
SendMode Input
; --------------------------------------------------------------
; media/function keys all mapped to the right option key
; --------------------------------------------------------------
; swap left command/windows key with left alt
;LWin::LAlt
;LAlt::LWin ; add a semicolon in front of this line if you want to disable the windows key
; Eject Key
F20::SendInput {Insert}
; F13-15, standard windows mapping
F13::SendInput {PrintScreen}
F14::SendInput {ScrollLock}
F15::SendInput {Pause}
; --------------------------------------------------------------
; OS X system shortcuts
; --------------------------------------------------------------
; Make Ctrl + S work with cmd (windows) key
#s::^s
; Selecting
#a::^a
; Copying
#c::^c
; Pasting
#v::^v
; Cutting
#x::^x
; Opening
#o::^o
; Finding
#f::Send ^f
; Undo
#z::^z
; Redo
#y::^y
; New tab
#t::^t
; close tab
#w::^w
; Close windows (cmd + q to Alt + F4)
#q::Send !{F4}
; Remap Windows + Tab to Alt + Tab.
Lwin & Tab::AltTab
; minimize windows
#m::WinMinimize,a
; --------------------------------------------------------------
; OS X keyboard mappings for special chars
; --------------------------------------------------------------
; Map Alt + L to @
!l::SendInput {@}
; Map Shift + Alt + 7 to \
+!7::SendInput {\}
; Map Alt + N to ©
!g::SendInput {©}
; Map AltGr + o to ø
<^>!o::SendInput {ø}
; Map AltGr + 5 to [
<^>!5::SendInput {[}
; Map AltGr + 6 to ]
<^>!6::SendInput {]}
; Map Alt + E to €
!e::SendInput {€}
; Map AltGr + 8 to {
<^>!8::SendInput {{}
; Map AltGr + 9 to }
<^>!9::SendInput {}}
; Map Alt + - to ±
!+::SendInput {±}
; Map Alt + R to ®
!r::SendInput {®}
; Map Alt + 7 to |
!7::SendInput {|}
; Map AltGr + ß to ¿
<^>!ß::SendInput {¿}
; Map AltGr + N to ~
<^>!n::SendInput {~}
; --------------------------------------------------------------
; Custom mappings for special chars
; --------------------------------------------------------------
; Map [ and ] to Alt+ö and Alt+ä
!ö::SendInput {[}
!ä::SendInput {]}
; Map { and } to Ctrl + ö and Ctrl + ä
^ö::SendInput {{}
^ä::SendInput {}}
; --------------------------------------------------------------
; Application specific
; --------------------------------------------------------------
; Google Chrome
#IfWinActive, ahk_class Chrome_WidgetWin_1
; Show Web Developer Tools with cmd + alt + i
#!i::Send {F12}
; Show source code with cmd + alt + u
#!u::Send ^u
#IfWinActive