said by cowboyro:I'd connect the black wire of the switch to hot and label the returning white wire as a "switched hot".
Except that is a code violation. The only white wire to the light fixture is to be the neutral. One can not use the white wire, even re-marked, as the switch hot
to the light fixture. It is perfectly acceptable, however, to use it as the hot to the light switch, provided it is re-marked.
The OP has it right, provided he re-marks the white wire that will be used as the switched-hot with black tape for example, and connects the ground wires properly.