Last active
December 30, 2022 15:44
-
-
Save atruskie/99a498ac43b91deb91eab4069b6047b9 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 |
I was using https://github.com/lonepie/mintty-quake-console , pretty simple to get it to run wt.exe instead of mintty/wsltty. Although the latest wt preview (1.2) absolutely breaks it. Your little script works very nicely, and honestly, is much easier for me to understand. With wt 1.2, if you stick an -F on the end (ie. Run, wt.exe -F) it will start fullscreen, which is pretty nice. Thanks!
great work!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot!