Created
July 15, 2013 09:25
-
-
Save takac/5998626 to your computer and use it in GitHub Desktop.
Autohotkey setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ScrollLock:: Send {Media_Play_Pause} | |
Pause:: Send {Media_Next} | |
PrintScreen:: Send {Media_Prev} | |
NumpadAdd:: Send {Volume_Up} | |
NumpadSub:: Send {Volume_Down} | |
^E:: send, {END} | |
; Send delete back word | |
^BS:: send, ^+{left}{delete} | |
; show Firefox | |
#f:: | |
if WinActive("ahk_class MozillaWindowClass") | |
{ | |
WinMinimize | |
} | |
else if WinExist("ahk_class MozillaWindowClass") | |
{ | |
WinActivate | |
} | |
else | |
Run Firefox | |
return | |
; show/hide cygwin | |
F1:: | |
if WinExist("ahk_class mintty") | |
{ | |
WinHide | |
} | |
else | |
{ | |
WinShow ahk_class mintty | |
WinWait, ahk_class mintty, , 1 | |
if ErrorLevel | |
{ | |
Run mintty.exe | |
} | |
else | |
{ | |
WinSet, AlwaysOnTop, on, ahk_class mintty | |
WinActivate | |
} | |
} | |
return | |
; show vim | |
#v:: | |
if WinActive("ahk_class Vim") | |
{ | |
WinMinimize | |
} | |
else if WinExist("ahk_class Vim") | |
{ | |
WinActivate | |
} | |
else | |
Run Gvim | |
return | |
#h:: | |
explorerpath:= "explorer /e," "C:\Users\Tom.Cammann" | |
Run, %explorerpath% | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment