Windows
PowerToys: Mapping Caps -> Ctrl
AutoHotKey
I placed these files in Documents folder, and created a shortcut to them in
toggleterm.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
!o:: ; Alt+O hotkey
; Check if there's already a WezTerm window with the desired class
WinGet, wezterm_id, ID, ahk_class floatingWez
if (!wezterm_id) {
; Launch WezTerm without showing a cmd window
; The "start" command with /b flag helps suppress the cmd window
Run, % ComSpec " /c start /b """" ""C:\Program Files\WezTerm\wezterm.exe"" start --class floatingWez", , Hide
; Give it a moment to start
Sleep, 500
; Try to get the ID again
WinGet, wezterm_id, ID, ahk_class floatingWez
}
; If we have a wezterm window with our class, toggle it
if (wezterm_id) {
if WinActive("ahk_id" wezterm_id) {
; Window is active, so minimize it
WinMinimize, ahk_id %wezterm_id%
} else {
; Window exists but is not active, so show and activate it
WinShow, ahk_id %wezterm_id%
WinRestore, ahk_id %wezterm_id%
WinActivate, ahk_id %wezterm_id%
}
}
return
volcontrol.ahk
; Volume Control Script
; Alt+] increases volume
; Alt+[ decreases volume
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases
#Warn ; Enable warnings to assist with detecting common errors
SendMode Input ; Recommended for new scripts due to its superior speed and reliability
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory
; Alt+] to increase volume
!]::
Send {Volume_Up}
return
; Alt+[ to decrease volume
![::
Send {Volume_Down}
return