with /window -h @windowname I can hide a window, but if I have 2 status windows open, how can I hide the second status window?
Use /scon, I think.
Edit:
alias status {
if (!$scon($1)) return
else { scon $1 window -h "Status Window" }
}
/status N - Hides Nth Status Window.
-Andy
just went to see if u need to check if the scon(x) exists, or if you can just issue it to a non existing and it would do nothing, (it doesnt it errors)
but the error is funny
/scon 2 window -h "Status Window"
* No such connection id: 1
/scon 34 window -h "Status Window"
* No such connection id: 33
* must reduce it by one to match an internal list, then forgets to re-up it.
thanks guys, it is working good for me