Automatically hide battery percentage when plugged in and fully charged

As a laptop user, i would like the ability to automatically hide the battery percentage when the laptop is fully charged and plugged in. In other circumstances, the battery percentage would be visible.