Display battery or plug depending on power source