Skip to content

Instantly share code, notes, and snippets.

@atruskie
Last active December 30, 2022 15:44
Show Gist options
  • Save atruskie/99a498ac43b91deb91eab4069b6047b9 to your computer and use it in GitHub Desktop.
Save atruskie/99a498ac43b91deb91eab4069b6047b9 to your computer and use it in GitHub Desktop.
AutoHotkey script to bind Win+~ keyboard shortcut to Windows Terminal
#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
@xxjapp
Copy link

xxjapp commented Apr 15, 2021

great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment