-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move ahk and tampermonkey to configs
- Loading branch information
Tianxi Ku
committed
Dec 20, 2023
1 parent
320c51e
commit 77542f5
Showing
3 changed files
with
517 additions
and
0 deletions.
There are no files selected for viewing
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
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() |
Oops, something went wrong.