Skip to content

Instantly share code, notes, and snippets.

@gabemarshall
Created November 12, 2019 15:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabemarshall/0c756171b74079da56dea5d200a02f3c to your computer and use it in GitHub Desktop.
Save gabemarshall/0c756171b74079da56dea5d200a02f3c to your computer and use it in GitHub Desktop.
My Autohotkey config
#IfWinActive, ahk_class CabinetWClass
#g::Send #f
#IfWinActive
:?*:%xss1::
Random, rand, 1, 99999
SendInput "<svg/onload=alert(%rand%)>
return
;Ctrl::Alt
;Alt::Ctrl
;
; Apple KeyboardLayout under Windows
; http://parrot-bytes.com/applekeyboard
;
; Copyright (c) 2015, Andreas Grill
; Released under MIT License.
;
; German 0.2.2
;
; Keyboard Navigation
; CMD + Left/Right
^Left::
KeyWait ^
Send {Home}
return
^Right::
KeyWait ^
Send {End}
return
; CMD + Shift + Left/Right
^+Left::
KeyWait ^
Send {LControl up}
Send +{Home}
Send {LControl down}
Send {LControl up}
return
^+Right::
KeyWait ^
Send {LControl up}
Send +{End}
Send {LControl down}
Send {LControl up}
return
; Alt + Left/Right
!Left::
Send ^{Left}
return
!Right::
Send ^{Right}
return
; Alt + Shift + Left/Right
!+Left::
Send ^+{Left}
return
!+Right::
Send ^+{Right}
return
; CMD + UP/Down (ignore this rule in explorer)
#IfWinNotActive ahk_class CabinetWClass
#^Up::^Home
#^Down::^End
#IfWinNotActive
; Paste special
!^+v::Send ^!{v}
; CMD + Q
^q::Send !{F4}
; CMD + Backspace
^Backspace::Send {Delete}
; Forcequit dialog
^!Escape::Send ^!{Delete}
; Remap characters
; Remap @
!l::Send {@}
<^>!l::Send {@}
; Remap Curly Braces
!8::Send {{}
<^>!8::Send {{}
!9::Send {}}
<^>!9::Send {}}
; Remap Brackets
!5::Send {[}
<^>!5::Send {[}
!6::Send {]}
<^>!6::Send {]}
; Remap Pipe
!7::Send {|}
<^>!7::Send {|}
; Remap Backslash
!+7::Send {\}
<^>!+7::Send {\}
; Remap application specific
; Remap explorer
#IfWinActive ahk_class CabinetWClass
; Navigate down
^Down::
KeyWait ^
Send {Enter}
Return
^O::
KeyWait ^
Send {Enter}
Return
; Navigate up
^Up::
KeyWait ^
Send !{Up}
Return
; Show File/Dir information
^i::
KeyWait ^
Send !{Enter}
Return
; Rename File/Dir
;Enter::
;KeyWait Enter
;Send {F2}
;Return
#IfWinActive
^Tab:: Send !{Tab}
; !Space::Send {LWin}
!h::WinMinimize, A ; Assign a hotkey to minimize the active window.
!S::Send ^s
!W::Send ^w
!O::Send ^o
!N::Send ^n
!Q::Send !{F4}
!V::Send ^v
!X::Send ^x
!Z::Send ^z
!C::Send ^c
!F::Send ^f
!A::Send ^a
!T::Send ^t
!R::Send ^r
!`::WinMinimizeAll ; Minimize all windows
<#`::WinMinimizeAllUndo ;
!BS::Send Delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment