Skip to content

Instantly share code, notes, and snippets.

@jc-torresp
Created September 21, 2019 03:45
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 jc-torresp/83d95e649fa7498180f044a57c5a0fe6 to your computer and use it in GitHub Desktop.
Save jc-torresp/83d95e649fa7498180f044a57c5a0fe6 to your computer and use it in GitHub Desktop.
AutoHotkey script for Quake style console on Windows (Ubuntu terminal)
; Change your hotkey here (Default Win + ~)
#SC029::
DetectHiddenWindows, on
IfWinExist ahk_exe ubuntu.exe
{
IfWinActive ahk_exe ubuntu.exe
{
WinHide ahk_exe ubuntu.exe
WinActivate ahk_id %active_id%
}
else
{
WinGet, active_id, ID, A
WinShow ahk_exe ubuntu.exe
WinActivate ahk_exe ubuntu.exe
}
}
else
Run ubuntu.exe
DetectHiddenWindows, off
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment