improved xrandr output function