added discharging detection for linux
removed infinity symbol from battery time
added discharge detection check for battery time
modified prompt generation to use an array