Updated workmode script to work with latest xorg updated