Skip to content

Instantly share code, notes, and snippets.

@Log1x
Created May 29, 2019 03:35
Show Gist options
  • Save Log1x/71499991dcf2eae772883a9371f9573b to your computer and use it in GitHub Desktop.
Save Log1x/71499991dcf2eae772883a9371f9573b to your computer and use it in GitHub Desktop.
macOS Key Mappings for Windows
;-----------------------------------------
; macOS Key Mappings for Windows
;=========================================
; --------------------------------------------------------------
; NOTES
; --------------------------------------------------------------
; ! = ALT
; ^ = CTRL
; + = SHIFT
; # = WIN
#InstallKeybdHook
#SingleInstance force
#NoTrayIcon
SetTitleMatchMode 2
SendMode Input
; --------------------------------------------------------------
; macOS System Shortcuts
; --------------------------------------------------------------
; Swap Win/Cmd and LAlt
LWin::LAlt
; Save
#s::Send, ^s
; Selecting
#a::Send, ^a
; Copying
#c::Send, ^c
; Pasting
#v::Send, ^v
; Cutting
#x::Send, ^x
; Opening
#o::Send, ^o
; Finding
#f::Send, ^f
; Undo
#z::Send, ^z
; Redo
#y::Send, ^y
; New Tab
#t::Send, ^t
; Close Tab
#w::Send, ^w
; Close Window (Cmd + Q -> Alt + F4)
#q::Send, !{F4}
; Cmd + Tab -> Alt + Tab
Lwin & Tab::AltTab
; Minimize Window
#m::WinMinimize,a
; --------------------------------------------------------------
; macOS Special Characters
; --------------------------------------------------------------
; Map Alt + G to ©
!g::SendInput {©}
; Map Alt + E to €
!e::SendInput {€}
; Map Alt + - to –
!-::SendInput {asc 0150}
; Map Alt + R to ®
!r::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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment