Extended the original script

- Shows a blue plug symbol instead of the hearts if plugged in and
fully charged
- Shows blue hearts while charging
- Separated operating systems

Only OS X at the moment, mainly because the linux part did not work on
my ubuntu vm. On Linux there are different approaches depending on the
distibution.