Skip to content

Instantly share code, notes, and snippets.

@wookiehangover
Created August 11, 2018 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wookiehangover/a2f44945f380d8e9b144c59c0d31ada4 to your computer and use it in GitHub Desktop.
Save wookiehangover/a2f44945f380d8e9b144c59c0d31ada4 to your computer and use it in GitHub Desktop.
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