Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions quake-windows-bash.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ BashHandle = ahk_exe bash.exe
WinMinimize, %BashHandle%
}
Return
; On F11 press
f11::
minMaxFlag := !minMaxFlag ,
WinGet, MinMax
if minMaxFlag{
WinMaximize, %BashHandle%
}
else{
winRestore, %BashHandle%
}
Return
34 changes: 34 additions & 0 deletions quake-windows-ubuntu-wsl2.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
;; Quake-style bash toggler for AutoHotkey.
;; Uses standard minimization/restoring animations.
;; [email protected]

#SingleInstance force

; ubuntu process handle
ubuntuHandle = ahk_exe ubuntu.exe

; On CTRL+ALT+t press
^!t::
WinGet, mx, MinMax, %ubuntuHandle%
; If window is minimized, restore it
if (mx = -1)
{
WinRestore, %ubuntuHandle%
}
else
{
WinMinimize, %ubuntuHandle%
}
return
; On F11 press
f11::
minMaxFlag := !minMaxFlag ,
WinGet, MinMax
if minMaxFlag{
WinMaximize, %ubuntuHandle%
}
else{
winRestore, %ubuntuHandle%
}
Return