statuscolours patch from w0ng
my patch that only allows one rule to take effect on a window
edited statusbar from w0ng