[ltp] Looking for a script, pretty sure it was posted here

David A. Desrosiers linux-thinkpad@linux-thinkpad.org
Wed, 22 Feb 2006 10:35:17 -0500 (EST)


> Debian has a packaged called 'acpi' which contains a binary called 
> 'acpi' which does exactly that.

 	Indeed, and I've wrapped that into ~/.bashrc (after fixing 
Ubuntu's bug where ~/.bashrc isn't parsed by default), and now I have 
a prompt that looks like this (with some color, on local consoles, no 
color on remote consoles):

 	State: discharging 8%, 00:13:01 remaining
 	[10:35:02 Wed Feb 22]
 	[1] angst:~
 	$


David A. Desrosiers
desrod@gnu-designs.com
http://gnu-designs.com