View Single Post
Posts: 1,427 | Thanked: 2,077 times | Joined on Aug 2009 @ Sydney
#103
Originally Posted by Palleman View Post
Here's a proposal for a new batt-level cmd line:
Code:
if `hal-device | grep is.charging | awk '{print $3}'`; then echo Charging; else hal-device | grep charge_level.percentage | awk '{print $3 "%"}'; fi
I made mine 16 wide and changed "Battery:" to "Batt" and "Charging" to "Chrg", making it smaller.
Nice. Might try it out. But use lshal instead of hal-device as lshal is much quicker.

I'm very happy to some more scripts others are using. Let's keep them coming!