Skip to content

Instantly share code, notes, and snippets.

@Phunky
Created January 27, 2015 15:51
Show Gist options
  • Save Phunky/34e3944d4b9304622bcb to your computer and use it in GitHub Desktop.
Save Phunky/34e3944d4b9304622bcb to your computer and use it in GitHub Desktop.
AutoHotKey config for OSX Keyboard on Windows and Linux. As in proper 1:1 keyboard mappings for those used to British OSX keyboard layout
#z::Run www.autohotkey.com
; Swap CMD and CTRL around
LWin::Ctrl
; Select start
^Left::
Send, {Home}
return
; Select end
^Right::
Send, {End}
return
^+Left Up::
Send, {Shift down}{Home}
return
^+Right Up::Send, {Shift down}{End}
return
; Pound
+3::Send, {U+00A3}
; Hash key
!3::Send, {U+0023}
return
; Apple media keys
RAlt & F7::SendInput {Media_Prev}
RAlt & F8::SendInput {Media_Play_Pause}
RAlt & F9::SendInput {Media_Next}
RAlt & F10::SendInput {Volume_Mute}
RAlt & F11::SoundSet, -10
RAlt & F12::SoundSet, +10
Shift & F13:: SoundSet, 50
Shift & F14:: SoundSet, 100
; F13-15, standard windows mapping
F13::SendInput {PrintScreen}
F14::SendInput {ScrollLock}
F15::SendInput {Pause}
; 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment