https://github.com/cybardev/wt-dropdown
Windows Terminal Dropdown script, written in AutoIt v3
https://github.com/cybardev/wt-dropdown
autoit3 dropdown-terminal startup-script terminal windows-terminal
Last synced: 5 months ago
JSON representation
Windows Terminal Dropdown script, written in AutoIt v3
- Host: GitHub
- URL: https://github.com/cybardev/wt-dropdown
- Owner: cybardev
- License: gpl-3.0
- Created: 2021-08-27T19:17:19.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-29T15:48:39.000Z (almost 4 years ago)
- Last Synced: 2023-03-08T19:06:44.054Z (about 2 years ago)
- Topics: autoit3, dropdown-terminal, startup-script, terminal, windows-terminal
- Language: AutoIt
- Homepage: https://wt.cybarspace.dev/
- Size: 567 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Windows Terminal Dropdown
## Automatically activate the built-in dropdown mode of Windows Terminal

Windows Terminal has a built-in dropdown mode, but there's no way to passively keep it on in the background at startup. The only way to activate it from my experience is to open an instance of the app, press the hotkey for the dropdown (`` Win+` `` by default) to activate it, press it again to hide it, then close the first instance.
This script does that all in one go, given that `wt.exe` is on the `$PATH`. I've set it as a Startup program since I regularly need the dropdown and manually executing this everytime is inefficient.
PS: This was intended for my personal use only. It may or may not work for you. Please use at your own discretion.
### Usage
1. [Download](https://github.com/cybardev/wt-dropdown/releases/download/v1.0/wt-dropdown.au3) the `wt-dropdown.au3` script
2. Edit the `tabName` variable in the script to the default tab name of your Windows Terminal
3. Make any other changes you may want
4. Install according to the instructions below### Install
1. Install [AutoIt3](https://www.autoitscript.com/site/autoit/downloads/)
2. Create an executable from the `wt-dropdown.au3` script using the installed tool
3. Place created executable in your startup directory: `C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp`### Source
- `wt-dropdown.au3` :
```autoit
; variables to change
$termName = "wt.exe" ; terminal program
$tabName = "Kali" ; default tab name
$hotKey = "#`" ; dropdown hotkey; start terminal and trigger dropdown
Run($termName)
WinWaitActive($tabName)
Send($hotKey)
WinWaitActive($tabName); check for dropdown
If WinGetPos($tabName)[0] < 0 Then
; hide dropdown then close window
Send($hotKey)
WinWaitActive($tabName)
WinClose($tabName)
Else
; close window then hide dropdown
WinClose($tabName)
WinWaitActive($tabName)
Send($hotKey)
EndIf
```### Credits
Windows Terminal icon taken from the [Microsoft/Terminal](https://github.com/Microsoft/Terminal) GitHub repository.
### License
Script and website content: [GPLv3](https://github.com/cybardev/wt-dropdown/blob/main/LICENSE)
Windows Terminal icon and the Jekyll theme for this website may have different license terms. Please check them out at their official repositories.