Last active
October 6, 2020 16:59
-
-
Save diazabdulm/727ef4bad4580658ca105a97976aed6c to your computer and use it in GitHub Desktop.
Magic Keyboard Configuration for Windows 10 (using AutoHotKey) - Extended @nathanpeck's version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;----------------------------------------- | |
; Mac keyboard to Windows Key Mappings | |
;========================================= | |
; -------------------------------------------------------------- | |
; NOTES | |
; -------------------------------------------------------------- | |
; ! = ALT | |
; ^ = CTRL | |
; + = SHIFT | |
; # = WIN | |
; | |
; Debug action snippet: MsgBox You pressed Control-A while Notepad is active. | |
#InstallKeybdHook | |
SetTitleMatchMode 2 | |
SendMode Input | |
; -------------------------------------------------------------- | |
; media/function keys all mapped to the right option key | |
; -------------------------------------------------------------- | |
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} | |
; F13-15, standard windows mapping | |
F13::SendInput {PrintScreen} | |
F14::SendInput {ScrollLock} | |
F15::SendInput {Pause} | |
; ------------------------------- | |
; Cursor Movement | |
; | |
; cmd + arrows - start & end of lines, with shift for selecting text | |
; ------------------------------- | |
#Left::SendInput {Home} | |
#Right::SendInput {End} | |
+#Left::SendInput +{Home} | |
+#Right::SendInput +{End} | |
!Left::SendInput ^{Left} | |
!Right::SendInput ^{Right} | |
!+Left::SendInput ^+{Left} | |
!+Right::SendInput ^+{Right} | |
; -------------------------------------------------------------- | |
; OS X system shortcuts | |
; -------------------------------------------------------------- | |
#s::SendInput ^{s} | |
#a::SendInput ^{a} | |
#c::SendInput ^{c} | |
#v::SendInput ^{v} | |
#x::SendInput ^{x} | |
#o::SendInput ^{o} | |
#f::SendInput ^{f} | |
#z::SendInput ^{z} | |
#y::SendInput ^{y} | |
#t::SendInput ^{t} | |
#w::SendInput ^{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 Alt + N to \ | |
+!7::SendInput {\} | |
; Map Alt + N to © | |
!g::SendInput {©} | |
; Map Alt + o to ø | |
!o::SendInput {ø} | |
; Map Alt + 5 to [ | |
!5::SendInput {[} | |
; Map Alt + 6 to ] | |
!6::SendInput {]} | |
; Map Alt + E to € | |
!e::SendInput {€} | |
; Map Alt + - to – | |
!-::SendInput {–} | |
; Map Alt + 8 to { | |
!8::SendInput {{} | |
; Map Alt + 9 to } | |
!9::SendInput {}} | |
; Map Alt + - to ± | |
!+::SendInput {±} | |
; Map Alt + R to ® | |
!r::SendInput {®} | |
; Map Alt + N to | | |
!7::SendInput {|} | |
; Map Alt + W to ∑ | |
!w::SendInput {∑} | |
; Map Alt + N to ~ | |
!n::SendInput {~} | |
; Map Alt + 3 to # | |
!3::SendInput {#} | |
; -------------------------------------------------------------- | |
; Custom mappings for special chars | |
; -------------------------------------------------------------- | |
;#ö::SendInput {[} | |
;#ä::SendInput {]} | |
;^ö::SendInput {{} | |
;^ä::SendInput {}} | |
; -------------------------------------------------------------- | |
; Application specific | |
; -------------------------------------------------------------- | |
; Google Chrome | |
#IfWinActive, ahk_class Chrome_WidgetWin_1 | |
; Show Web Developer Tools with cmd + shift + i | |
#+i::Send {F12} | |
; Show source code with cmd + alt + u | |
#!u::Send ^u | |
; Refresh current page | |
#r::Send {F5} | |
#IfWinActive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment