tschak909 / battery-meter

A Battery meter for X11 written in pure Xlib.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

battery-meter

A Battery meter for X11 written in pure Xlib.

Battery Meter Screenshot

why

I was putting together a minimal X11 environment on my smaller Thinkpad T61 laptop based around twm and Xaw. I wanted a simple battery meter, so I wrote one.

usage

bm <xpos> <ypos> <width> <height>
  • xpos = the X pixel position on screen
  • ypos = the Y pixel position on screen
  • width = the width of the battery bar, in pixels
  • height = the height of the battery bar, in pixels

example

On my Thinkpad T61 with 1280x800 display, putting close to lower right, next to my clock (as in the screenshot)

bm 840 766 256 16

license

Licensed under GPL v. 3, see LICENSE file for details.

author

Thomas Cherryhomes <thom.cherryhomes at gmail.com>

About

A Battery meter for X11 written in pure Xlib.

License:GNU General Public License v3.0


Languages

Language:C 98.1%Language:Makefile 1.9%