Im stuck with this one i want it to hide all windows (except status on inactive connections:
on *:active:*:{
var %x = 1
while (%x <= $window(0)) {
window -w $window(*,%x)
inc %x 1
}
var %x = 1
while (%x <= $scon(0)) {
if ($scon(%x) == $cid) scid $scon(%x) {
scon %x hidewindows
inc %x
}
inc %x 1
}
}
alias -l hidewindows {
var %x = 1
while (%x <= $window(0)) {
if ($window != status window) window -h $window(*,%x)
inc %x 1
}
}
any ideas?