Created
November 13, 2018 19:11
-
-
Save 1415926535/9d187eab69a1c11ac0fcbc0b20071ab0 to your computer and use it in GitHub Desktop.
AHK - Toggle WSL Terminal with F1
This file contains hidden or 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
F1:: | |
IfWinExist, ahk_exe ubuntu1804.exe | |
{ | |
IfWinActive | |
WinHide | |
else | |
WinActivate | |
WinSet, AlwaysOnTop, On, ahk_exe ubuntu1804.exe | |
} | |
Else | |
{ | |
WinShow, ahk_exe ubuntu1804.exe | |
WinActivate, ahk_exe ubuntu1804.exe | |
WinSet, AlwaysOnTop, On, ahk_exe ubuntu1804.exe | |
} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment