Skip to content

Instantly share code, notes, and snippets.

@sobstel
Last active November 2, 2020 09:51
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 sobstel/683aae3443b6fcf7282592a88b706d53 to your computer and use it in GitHub Desktop.
Save sobstel/683aae3443b6fcf7282592a88b706d53 to your computer and use it in GitHub Desktop.
win10vm_apple_keyboard
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetScrollLockState, AlwaysOff
;following section remaps alt-arrow and command-arrow
;keys to mimic OSX behaviour
#Up::SendInput {Lctrl down}{Home}{Lctrl up}
#Down::SendInput {Lctrl down}{End}{Lctrl up}
#Left::SendInput {Home}
#Right::SendInput {End}
!Up::SendInput {Home}
!Down::SendInput {End}
!Left::^Left
!Right::^Right
#+Left::SendInput +{Home}
#+Right::SendInput +{End}
!+Left::SendInput ^+{Left}
!+Right::SendInput ^+{Right}
; ~` keys
SC056::`
+SC056::~
;Google Chrome
#IfWinActive, ahk_class Chrome_WidgetWin_1
#!i::Send {F12}
#w::SendInput {Ctrl down}w{Ctrl up}
#IfWinActive
;Web Storm
#IfWinActive, ahk_exe webstorm64.exe
#+f::SendInput ^+{f}
#+n::SendInput ^+{n}
#p::SendInput ^+{n}
^p::SendInput ^+{n}
#IfWinActive
;Visual Code Studio
#IfWinActive, ahk_exe Code.exe
#+f::SendInput ^+{f}
#p::SendInput ^{p}
#+p::SendInput ^+{p}
#w::Send {Ctrl down}w{Ctrl up}
#IfWinActive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment