I am trying to replace a light switch (so it's white and matchs the room, it still works) but the switch in this room is not grounded (there is no ground screw, it's an older switch). There are two ground wires, which as I understand, one goes to the fixture and one comes from supply ( something like that). The wires were capped together.
The two bare wires in the box should be twisted together along with another short bare wire (about 4 - 6") called a pigtail, and capped with a wire nut. The other end of the pigtail should be attached to the grounding screw, shown in the picture, on the strap of the switch.