To wire the ceiling fixture to the new wall switch first connect the copper grounding wire to the fixture.
How to install a light switch in a finished wall.
Select boxes that meet local codes.
For a ceiling fan or a heavy light fixture buy a fixture box that attaches to a fan rated brace.
Fold the wires into the junction box then place the fixture over the studs or nipple then attach with the cover plate per the manufacturer s instructions.
Twist and connect wires.
Tighten the mounting screws to secure the switch to the wall box.
Restore power and test the switch.
Mark this wire black.
Connect the hot wire to the side of the double switch that has the jumper tab between the terminals photo 7.
Twist a plastic wire cap onto each connection.
Select boxes that meet local codes.
White to white black to black and copper to copper.
Complete the project by mounting the light fixture screwing the switch to the box and installing the cover plate.
Cover with a switch plate.
Connect the wires as shown in figure a.
Install a piece of the 12 3 with ground romex between the original switch location laying it in the notches you made in the studs running it up through wall to the second switches location.
Install the wall plate.
When you need to add an outlet or switch in an existing wall you need to use a special electrical box called an old work box an old work electrical box may be metal or plastic and is specially designed to be installed in an existing wall where it has no support other than the wall itself.
Install globes and bulbs.
If the drywall or plaster is damaged cut a larger hole and install a box that attaches directly to a stud or joist.
Place switch in the wall box.
Then splice the fixture s black lead into the new black wire.
To ensure that frequently used switches last longer purchase a spec rated or commercial device.