Connecting breadboards with different batteries to a single switch
If you have a common ground, you could put the switch between the battery grounds and the breadboard grounds.  If not, you probably need a 3-pole switch.