Created
March 11, 2011 10:58
-
-
Save eed3si9n/865730 to your computer and use it in GitHub Desktop.
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
#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