You are not logged in.

#1 2011-05-02 22:03:29

crom
Member
From: Germany
Registered: 2008-05-11
Posts: 43

gminibat: An ultra lightweight gtk battery icon

Hi forum,

I've been looking for a lightweight battery monitor for flux, but nothing fitted my needs. So I hacked my own. It is basically just a gtk status icon for which I set an appropriate pixmap.

It is written in plain C with some GTK functions and uses /sys for reading the battery state. It works for me with debian stable and testing.

Currently the syspath is hardcoded but it could be put into an environment variable.

Anyway, here it is:
https://github.com/riddleofst33l/gminibat

I know, I should check for return codes, but that will be done later. big_smile

Greetings
Sebastian

Last edited by crom (2011-05-02 22:37:19)

Offline

Board footer

Powered by FluxBB