Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
autohotkey config for Mac OS-like keyboard friendliness
; --------------------------------------------------------------
; 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
#r::Send ^r
; Easier tab switching
#+[::Send ^{PgUp}
#+]::Send ^{PgDn}
#IfWinActive
; Visual Studio Code
#IfWinActive, ahk_exe Code.exe
; Comments
#/::Send ^/
; System default is stupid for cmd + p
#p::Send ^p
#IfWinActive
#IfWinActive, ahk_exe Hyper.exe
#c::Send ^+c
#v::Send ^+v
#t::Send ^+t
#w::Send ^+w
#IfWinActive
; --------------------------------------------------------------
; OS X system shortcuts
; --------------------------------------------------------------
; Make Ctrl + S work with cmd (windows) key
#s::Send ^s
; Selecting
#a::Send ^a
; Copying
#c::Send ^c
; Pasting
#v::Send ^v
; Cutting
#x::Send ^x
; Opening
#o::^o
; Finding
#f::Send ^f
; Undo
#z::Send ^z
; Redo
#y::Send ^y
; New tab
#t::Send ^t
; close tab
#w::Send ^w
; Preferences
#,::Send ^,
; Close windows (cmd + q to Alt + F4)
#q::Send !{F4}
; Remap Windows + Tab to Alt + Tab.
Lwin & Tab::AltTab
; minimize windows
#m::WinMinimize,a
; emoji picker
#^Space::Send #.
; muthafuckin dash
!+-::Send —
; nuthafuckin dash
!-::Send –
!i::
MouseGetPos,,, MouseWin
WinSet, AlwaysOnTop, Toggle, ahk_id %MouseWin%
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.