I am working on a feature for my config that will allow me to press a key (in my case its F1) that will unshade a terminal that is running irssi. I want this terminal to be centered at the bottom of my screen. When I press F1 I want it to unshade “up”.
The problems I have run into so far:
-I don’t know how to get this terminal window centered.
-I don’t know how to get JUST this one window to have the controls on the “bottom” of the window–this will allow it to unshade “up” (or at least thats how i understand it.
So far I have the terminal working where it runs at start and unshades “down” from the top left.
Here is the code I have for it:
+ I Test (Init) StartTerminal
[code]DestroyFunc StartTerminal
AddToFunc StartTerminal
- I Exec exec $[TermName] -name irc -tr -tint white -sh 60 +sb -fg grey -e irssi
- I Wait irc
- I All (irc) Resize 50 45
- I All (irc) Move 0p 0p
- I All (irc) WindowShade[/code]
[code]
Style irc NoTitle, Sticky, WindowListSkip, CirculateSkipIcon, CirculateSkip
Style irc StaysOnTop, NoHandles, BorderWidth 1, WindowShadeSteps 75
DestroyFunc irc
AddToFunc irc
- I All (irc) WindowShade
- I Next (HasPointer) Focus
- I All (irc) Focus
- I All (irc Shaded) Next (HasPointer) Focus[/code]
How can I center this on the bottom of my screen?
&
How can unshade “up” BUT I only want this one particular window to have that feature. I want the other windows to unshade down (or have the controls on the top).
I have I wasnt confusing. Any help would be greatly appreciated.