Created
September 21, 2019 03:45
-
-
Save jc-torresp/83d95e649fa7498180f044a57c5a0fe6 to your computer and use it in GitHub Desktop.
AutoHotkey script for Quake style console on Windows (Ubuntu terminal)
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
; 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