#9front
A #9front snippet to enable battery status on your laptop:
-
Add to
plan9.ini:
*acpi=1 -
Add to
$home/lib/profile, before theswitch($service)part:
aux/acpi -s batteryThis starts acpi and also exposes the battery device as a service.
3a) If you want to use the stats(1) window to display battery status, then in your $home/bin/rc/riostart add "b" among the options, so eg. window 0,0,161,130 stats -lbmisce
3b) Or alternatively you can run bar; auto-start it in your riostart (as above) by adding
window bar