Skip to content

Instantly share code, notes, and snippets.

@1415926535
Created November 13, 2018 19:11
Show Gist options
  • Save 1415926535/9d187eab69a1c11ac0fcbc0b20071ab0 to your computer and use it in GitHub Desktop.
Save 1415926535/9d187eab69a1c11ac0fcbc0b20071ab0 to your computer and use it in GitHub Desktop.
AHK - Toggle WSL Terminal with F1
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