NAME

TkBattery, by Jim Turner c. 2016

SYNOPSIS

tkbat.pl [--options=values]

tkbat.pl [-d|--debug] [--config=<configfile> [--pollmsec=#[60000]] [--geometry=wxh+x+y] [--windowmgr=[0]|1] [--apmchkd=[0]|1|2]

tkbat.pl --help (display usage message)

DESCRIPTION

This program displays a nice graphic and text showing the battery status. I wrote this because wmpower and wmbattery no longer work with modern kernels.

CONFIGURATION

How to set up:

1) Copy tkbat.pl to /usr/local/bin/, or whereever.

2) Copy the images (warnlobat.xpm and susplobat.xpm) to /usr/share/pixmaps/ (or whereever, or use your own - if creating a config file and using the --apmchkd option).

3) The optional file: $HOME/.config/tkbat.cfg takes the format (defaults shown below): Any line starting with "#" is ignored as a comment. See example (default) below:

4) To make this app. appear in your AfterStep/Windowmaker "wharf", add the following to your config file:

     *Wharf TkBat - MaxSwallow "TkBat" /usr/bin/nice -n 5 /usr/local/bin/tkbat.pl --apmchkd=1 &

5) run tkbat.pl -h to view which options can be set on the command-line (options set on the command line overrule those set in the configuration file).

6) Enjoy!