if [ -n "$XKBMODEL" ] || [ -n "$XKBRULES" ] || [ -n "$XKBLAYOUT" ] || [ -n "$XKBVARIANT" ] || [ -n "$XKBOPTIONS" ]; then
    keyboard_hacks="$keyboard_hacks set_xkb"

    CONFIGURE_X="True"

    set_xkb() {
        if [ -n "$XKBRULES" ]; then
            echo "    Option \"XkbRules\" \"${XKBRULES}\""
        fi
        if [ -n "$XKBMODEL" ]; then
            echo "    Option \"XkbModel\" \"${XKBMODEL}\""
        fi
        if [ -n "$XKBLAYOUT" ]; then
            echo "    Option \"XkbLayout\" \"${XKBLAYOUT}\""
        fi
        if [ -n "$XKBVARIANT" ]; then
            echo "    Option \"XkbVariant\" \"${XKBVARIANT}\""
        fi
        if [ -n "$XKBOPTIONS" ]; then
            echo "    Option \"XkbOptions\" \"${XKBOPTIONS}\""
        fi
    }
fi