Copyright (C) 2000-2012 |
Whole document tree
11.11. Laptop PowerIf you have a laptop with APM installed, try the following PROMPT_COMMAND to create an environment variable ${battery} you can add to your prompt. This will indicate if AC power is connected and percentage power remaining. AC power is indicated by a "^" (for on) and a "v" (for off) before the percentage value.
|