-
Notifications
You must be signed in to change notification settings - Fork 2
/
MacKeyboardNorwegian.ahk
executable file
·239 lines (169 loc) · 4.66 KB
/
MacKeyboardNorwegian.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
;--------------------------------------------------
; Mac keyboard to Windows Key Mappings, Norwegian.
;==================================================
; --------------------------------------------------------------
; NOTES
; --------------------------------------------------------------
; ! = ALT
; ^ = CTRL
; + = SHIFT
; # = WIN
; <^>! = ALTGR
;
; Debug action snippet: MsgBox You pressed Control-A while Notepad is active.
#InstallKeybdHook
#SingleInstance force
SetTitleMatchMode 2
SendMode Input
;Use a standarized way to go backward and forward with mouse button 4 and 5
XButton1::Send, {BROWSER_FORWARD}
XButton2::Send, {BROWSER_BACK}
; --------------------------------------------------------------
; media/function keys all mapped to the right option key
; --------------------------------------------------------------
;By demand of Visual Studio developers, All F-keys are now left as default. Comment out for media keys.
;RAlt & F7::SendInput {Media_Prev}
;RAlt & F8::SendInput {Media_Play_Pause}
;RAlt & F9::SendInput {Media_Next}
;F10::SendInput {Volume_Mute}
;F11::SendInput {Volume_Down}
;F12::SendInput {Volume_Up}
; 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}
; Alt + Insert (New File in ReSharper)
;LAlt & Insert::SendInput {LCtrl Down}{LAlt Down}{Insert}
; Alt + Insert (Generate Code ReSharper)
LAlt & F13::SendInput {LAlt Down}{Insert}
; F13-15, standard windows mapping
F13::SendInput {PrintScreen}
F14::SendInput {ScrollLock}
; F15::SendInput {Pause}
; Delete files
RWin & BS::SendInput {Delete}
LWin & BS::SendInput {Delete}
; --------------------------------------------------------------
; 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 Window
#n::^n
; New tab
#t::^t
; close tab
#w::^w
; Bold:
#b::^b
; Italic:
#i::^i
; Bookmark (at least in some browsers). This one is in conflict with Show Desktop, uncomment if you need it.
;#d::^d
; 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 @ correctly
'::@
; Map ' correctly
|::'
;Mapping * correctly
Shift & '::SendInput {NumpadMult}
; Map Shift + Alt + 7 to \
+!7::SendInput {\}
+<^>!7::SendInput {\}
; Map Alt + N to ©
!g::SendInput {©}
; Map Alt + o to ø
!o::SendInput {ø}
; Map Shift + 4 to $
+4::SendInput {$}
; Map Alt + 8 to [
!8::SendInput {[}
; Map Alt + 9 to ]
!9::SendInput {]}
; Map Alt + E to €
!e::SendInput {€}
; Map Alt + - to –
!-::SendInput {–}
; Map Alt + 8 to {
!+8::SendInput {{}
+<^>!+8::SendInput {{}
; Map Alt + 9 to }
+!9::SendInput {}}
+<^>!9::SendInput {}}
; Map Alt + - to ±
!+::SendInput {±}
; Map Alt + R to ®
!r::SendInput {®}
; Map Alt + 7 to |
!7::SendInput {|}
<^>!7::SendInput {|}
; Map Alt + W to ∑
!w::SendInput {∑}
; Map Alt + N to ~
!n::SendInput {~}
; OSX NAVIGATION AND SELECTION WITH CMD
#Up::Send {ctrl down}{Home}{ctrl up}
#Down::Send {ctrl down}{End}{ctrl up}
#+Up::Send {ctrl down}{shift down}{Home}{shift up}{ctrl up}
#+Down::Send {ctrl down}{shift down}{End}{shift up}{ctrl up}
#Left::Send {Home}
#Right::Send {End}
#+Left::Send {shift down}{Home}{shift up}
#+Right::Send {shift down}{End}{shift up}
; OSX NAVIGATION AND SELECTION WITH ALT
!Left::Send {ctrl down}{Left}{ctrl up}
!Right::Send {ctrl down}{Right}{ctrl up}
!+Left::Send {ctrl down}{shift down}{Left}{shift up}{ctrl up}
!+Right::Send {ctrl down}{shift down}{Right}{shift up}{ctrl up}
;Allow Command +Left/Right to be used as Home/End
;Lwin & Left::SendInput {Home}
;Lwin & Right::SendInput {End}
; --------------------------------------------------------------
; 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
;New Tab
#t::Send ^t
;Close Tab
#w::Send ^w
;Hacking copy paste in Chrome
#c::Send ^c
#v::Send ^v
#x::Send ^x
;Focus URL-field, not lock PC
;^l::return
;#l::SendInput ^{l}
;MOUSE-TWEAKS
;Use a standarized way to go backward and forward with mouse button 4 and 5
XButton1::Send, {BROWSER_FORWARD}
XButton2::Send, {BROWSER_BACK}