Added resolution detection via xrandr