### color depth

# Default to 16 bpp for thin clients
if boolean_is_true "${X_SMART_COLOR_DEPTH:-True}" && ! boolean_is_true "${LTSP_FATCLIENT}"; then
    X_COLOR_DEPTH=16
fi

if [ -n "$X_COLOR_DEPTH" ]; then
    # Set color depth if X_CONF has been set to our internally generated
    # XCONF file OR if no user-defined X_CONF file was specified.
    # 
    # However, if the user defines their own X_CONF file, then we
    # should ignore a request by the user for a specific color depth.
    # The color depth should instead be set in that pre-defined xorg.conf
    # file.  Otherwise, it might lead to confusion.
    #
    if [ "$X_CONF" = "$XCONF" ] || [ -z "$X_CONF" ]; then
        X_ARGS="$X_ARGS -depth $X_COLOR_DEPTH"
    fi
fi  

