Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobjmarks committed Jun 28, 2023
0 parents commit 512d825
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"cweijan.vscode-autohotkey-plus"
]
}
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
![Terminal Icon](terminal.ico)

An [AutoHotKey](https://www.autohotkey.com/) script to open Windows Terminal via the `Ctrl+Alt+T` keyboard shortcut.

Compiled shortcuts exist for both the [mainline](https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701) and [preview](https://apps.microsoft.com/store/detail/windows-terminal-preview/9N8G5RFZ9XK3) versions of the Windows Terminal.

Executable icons sourced from the official [microsoft/terminal](https://github.com/microsoft/terminal) repository.

# Usage

Download your executable of choice from the [releases](https://github.com/jacobjmarks/terminal-hotkey/releases) section.
After running the executable, you should be able to open a new Windows Terminal window by pressing `Ctrl+Alt+T`.

Note that like any AutoHotkey script, you will need to re-run the executable after restarting your system. I recommend simply adding a shortcut to the program to your `shell:startup` folder\* to alleviate this issue.

\* i.e. `%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup`

# Customising

If you would like to customise the script (including the hotkey) feel free to download it, modify, and compile.

# Compiling

You can compile the script into an executable using [AutoHotKey](https://www.autohotkey.com/).
4 changes: 4 additions & 0 deletions terminal-preview.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
;@Ahk2Exe-ExeName Terminal Preview Hotkey
;@Ahk2Exe-SetMainIcon terminal-preview.ico
#SingleInstance Force
^!T::Run "shell:appsfolder\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe!App"
Binary file added terminal-preview.ico
Binary file not shown.
4 changes: 4 additions & 0 deletions terminal.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
;@Ahk2Exe-ExeName Terminal Hotkey
;@Ahk2Exe-SetMainIcon terminal.ico
#SingleInstance Force
^!T::Run "shell:appsfolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App"
Binary file added terminal.ico
Binary file not shown.

0 comments on commit 512d825

Please sign in to comment.