copycat-killer/lain — pull request #6 by cahna (2013-09-26 20:15:47+00:00)
Title: silence warnings when battery is <15%, but charging

After allowing my laptop to deplete its battery, I connected the laptop to power and started it up. Upon login, I was notified each refresh interval that battery death was imminent (despite being on AC power). This commit silences battery warnings unless the battery is discharging (applied for both the original bat widget and the contrib.tpbat widget).