-
-
Save ivan-marquez/55b1d61228c0a4465416b27c6f4b511f to your computer and use it in GitHub Desktop.
AutoHotkey script to bind Win+~ keyboard shortcut to Windows Terminal
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
#NoEnv | |
#SingleInstance force | |
SendMode Input | |
DetectHiddenWindows, on | |
SetWinDelay, 0 | |
#`:: | |
terminal := WinExist("ahk_exe WindowsTerminal.exe") | |
if (terminal) | |
{ | |
active := WinActive("ahk_id " terminal) | |
if (active) | |
WinMinimize, ahk_id %active% | |
else | |
WinActivate, ahk_id %terminal% | |
} | |
else | |
Run, wt.exe | |
Return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment