How does warming of the earth by sun produce wind and ocean currents?

Wind and ocean currents are both produced by the Earth's unequal heating. This leads to the conclusion that the Sun is the main component in wind currents and ocean currents, because the Sun is what heats the Earth.