Skip to content

Commit

Permalink
move ahk and tampermonkey to configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianxi Ku committed Dec 20, 2023
1 parent 320c51e commit 77542f5
Show file tree
Hide file tree
Showing 3 changed files with 517 additions and 0 deletions.
44 changes: 44 additions & 0 deletions ahk/appLaunchers.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#Requires AutoHotkey v2.0

SwitchToWindowsTerminal()
{
if (WinActive("ahk_exe WindowsTerminal.exe"))
{
WinMinimize
}
else if (WinExist("ahk_exe WindowsTerminal.exe"))
{
WinActivate
}
else {
Run 'wt'
}
}

; Hotkey to use Shift-Alt-t to launch/restore the Windows Terminal.
+!t::SwitchToWindowsTerminal()


SwitchToWezterm()
{
if (WinActive("ahk_exe wezterm-gui.exe"))
{
WinMinimize
}
else if (WinExist("ahk_exe wezterm-gui.exe"))
{
WinActivate
}
else {
Run "C:\Program Files\WezTerm\wezterm-gui.exe"
}
}

+!w::SwitchToWezterm()

UnzipFirstZipFileInDownload()
{
Run 'pwsh.exe -Command "unzipLatestZipFileInDownloads"'
}

+!z::UnzipFirstZipFileInDownload()
Loading

0 comments on commit 77542f5

Please sign in to comment.