Skip to content

Instantly share code, notes, and snippets.

@eed3si9n
Created March 11, 2011 10:58
Show Gist options
  • Save eed3si9n/865730 to your computer and use it in GitHub Desktop.
Save eed3si9n/865730 to your computer and use it in GitHub Desktop.
#SingleInstance FORCE
#NoEnv
^`::
DetectHiddenWindows, off
IfWinExist, bash
{
wingetpos, wx, wy, wwidth, wheight
counter=0
tick:= 50
loopnum:= wheight / tick
loop, %loopnum%
{
winmove,,,0,0 - counter * tick, A_ScreenWidth, wheight
counter+=1
}
winhide, bash
send !{tab}
return
}
DetectHiddenWindows, on
SetTitleMatchMode, 2
IfWinExist, bash
{
wingetpos, wx, wy, wwidth, wheight
winmove,,,0,0-wheight, A_ScreenWidth, wheight
winshow
WinActivate
tick:= 50
loopnum:= wheight / tick
loop, %loopnum%
{
winmove,,,0,(a_index * tick) - wheight, A_ScreenWidth, wheight
}
winmove,,,0,0, A_ScreenWidth, wheight
WinActivate
WinWaitActive
}
else
Run,E:\cygwin\bin\rxvt.exe -sl 1500 -fn "Monaco" -bg black -fg grey -geometry 185x25 -sr -e bash --login -i
return
!`::
DetectHiddenWindows, off
IfWinExist, bash
{
wingetpos, wx, wy, wwidth, wheight
winhide, bash
send !{tab}
return
}
DetectHiddenWindows, on
SetTitleMatchMode, 2
IfWinExist, bash
{
winshow
wingetpos, wx, wy, wwidth, wheight
winmove,,,0,0, A_ScreenWidth, wheight
WinActivate
winmove,,,0,0, A_ScreenWidth, wheight
winshow
WinActivate
WinWaitActive
}
else
Run,E:\cygwin\bin\rxvt.exe -sl 1500 -fn "Monaco" -bg black -fg grey -geometry 185x25 -sr -e bash --login -i
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment