The upstream version seems dead (and doesn't support ACPI), but it looks like a version with ACPI support is maintained by one of the Debian developers: http://packages.debian.org/sid/xbattbar
I think it would be cool to have this available in the Slackbuilds repo (if anyone wants to make a Slackbuild for it) - it's about as good a battery monitor as I've ever found for lightweight WMs. Doesn't use much screen space, does its job well, etc.
Xbattbar?
Re: Xbattbar?
Maybe this will also help
https://aur.archlinux.org/packages.php?ID=44192
http://sharesource.org/project/xbattbar/
xbattbar-acpi
https://aur.archlinux.org/packages.php?ID=44192
http://sharesource.org/project/xbattbar/
xbattbar-acpi
Help to make Slackware easier Donate to Salix
Re: Xbattbar?
Think I'd be more trusting of the Debian version... Thanks though.
(I wish I knew enough C to take it over, or fork it. 1.4.3 has a bug with the -a option that causes some screensavers to crash. )
(I wish I knew enough C to take it over, or fork it. 1.4.3 has a bug with the -a option that causes some screensavers to crash. )
Re: Xbattbar?
This seems to be an excellent little app (as I have discovered since becoming a laptop user), and I'd like to try my hand at packaging it.
@GJones I had a look at the debian link you posted. I don't know Debian, and it wasn't immediately clear where to find the source or any patches applied to provide acpi support. Could you point me in the right direction?
I also have a question about it in use. I'm using xmonad at the moment, and put
in my .xinitrc. The lovely green line duly appears (and is present if I switch to an unused workspace) but disppears if I open a tile or window. I can bring it back by calling xbattbar with dmenu, but that isn't the way it should be.
I should say that for testing purposes, I just copied the unpacked executable and library files to the right places in Slackel/Salix, and unsurprisingly, though it runs, it doesn't seem to work properly.
@GJones I had a look at the debian link you posted. I don't know Debian, and it wasn't immediately clear where to find the source or any patches applied to provide acpi support. Could you point me in the right direction?
I also have a question about it in use. I'm using xmonad at the moment, and put
Code: Select all
xbattbar -c &
I should say that for testing purposes, I just copied the unpacked executable and library files to the right places in Slackel/Salix, and unsurprisingly, though it runs, it doesn't seem to work properly.
Re: Xbattbar?
http://packages.debian.org/source/squeeze/xbattbarmimosa wrote:@GJones I had a look at the debian link you posted. I don't know Debian, and it wasn't immediately clear where to find the source or any patches applied to provide acpi support. Could you point me in the right direction.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
Re: Xbattbar?
Guys good news. Have a look at the following page,
https://github.com/aravind/xbattbar-acpi
I hope this helps!
Cheers!!!
https://github.com/aravind/xbattbar-acpi
I hope this helps!
Cheers!!!
Re: Xbattbar?
Thank you both very much. I'll look into that and try again.
As I think I posted above, apart from the basic problem of making xbattbar work, I am also stuck on how to make it play well with the WM. Perhaps this is more of a problem with tiling WMs (which I particularly favour for laptop use where space may be short), and I haven't tested properly with e.g. Openbox (which is what I have put Xmonad on top of on this machine, running the previous Slackel Openbox).
So in this case, what happens is I see the lovely green line on startx, but it disappears as soon as an application window is opened. Switching to a fresh workspace reveals the green line again, but only as long as the space is left empty.
I'd be grateful if anyone has any suggestions about how to get this right.
A messy one: keep calling xbattbar again, or call it on launching a tile.
As I think I posted above, apart from the basic problem of making xbattbar work, I am also stuck on how to make it play well with the WM. Perhaps this is more of a problem with tiling WMs (which I particularly favour for laptop use where space may be short), and I haven't tested properly with e.g. Openbox (which is what I have put Xmonad on top of on this machine, running the previous Slackel Openbox).
So in this case, what happens is I see the lovely green line on startx, but it disappears as soon as an application window is opened. Switching to a fresh workspace reveals the green line again, but only as long as the space is left empty.
I'd be grateful if anyone has any suggestions about how to get this right.
A messy one: keep calling xbattbar again, or call it on launching a tile.
Re: Xbattbar?
I'm pleased to report that that works. I haven't tested it much. It doesn't change colour to reflect whether mains power is connected, which is something I'll look into. I also still haven't worked out how to use it properly with a tiling WM.
There are a couple of dependencies, mentioned in the README. All apparently pretty straightforward. I don't know what libc6-dev is (a sub-dependency, sounds like a Ubuntu thing) but it doesn't appear to feel the lack.
There are a couple of dependencies, mentioned in the README. All apparently pretty straightforward. I don't know what libc6-dev is (a sub-dependency, sounds like a Ubuntu thing) but it doesn't appear to feel the lack.
Re: Xbattbar?
I've made packages for xbattbar-acpi and two needed dependencies, though one of the packages (xbattbar-acpi itself) isn't quite right yet. However, I'm running Slackel at the moment, so I'm unable to build them for Salix 14.0 in either architecture. Here are links to the SLKBUILDS:
http://people.salixos.org/mimosa/packag ... 4/SLKBUILD
http://people.salixos.org/mimosa/packag ... 2/SLKBUILD
http://people.salixos.org/mimosa/packag ... 0/SLKBUILD
http://people.salixos.org/mimosa/packag ... 6-1tjb.dep
http://people.salixos.org/mimosa/packag ... 6-1tjb.dep
If anyone has time to try building and testing these for Salix 14.0 that would be much appreciated. If all seems well, please post the packages too, if you can!
I'd also be grateful if anyone can give me any pointers for the xbattbar-acpi package. There is a comment in the SLKBUILD explaining the problem.
If xbattbar-acpi is called with the -a switch, it always stays on top. One minor bug I have noticed is that when it thinks the battery is full, a little red "uncharged" notch remains - fair enough, as it probably means the battery's stuck at 97% - but xbattbar-acpi then no longer registers the presence of AC power (the "uncharged" section should turn a diferent colour). But it hardly matters. The colours themselves may be changed by -I|O|i|o "[colour]", see man page. E.g.
http://people.salixos.org/mimosa/packag ... 4/SLKBUILD
http://people.salixos.org/mimosa/packag ... 2/SLKBUILD
http://people.salixos.org/mimosa/packag ... 0/SLKBUILD
http://people.salixos.org/mimosa/packag ... 6-1tjb.dep
http://people.salixos.org/mimosa/packag ... 6-1tjb.dep
If anyone has time to try building and testing these for Salix 14.0 that would be much appreciated. If all seems well, please post the packages too, if you can!
I'd also be grateful if anyone can give me any pointers for the xbattbar-acpi package. There is a comment in the SLKBUILD explaining the problem.
If xbattbar-acpi is called with the -a switch, it always stays on top. One minor bug I have noticed is that when it thinks the battery is full, a little red "uncharged" notch remains - fair enough, as it probably means the battery's stuck at 97% - but xbattbar-acpi then no longer registers the presence of AC power (the "uncharged" section should turn a diferent colour). But it hardly matters. The colours themselves may be changed by -I|O|i|o "[colour]", see man page. E.g.
Code: Select all
xbattbar-acpi -ai "blue" -o "black" &
Re: Xbattbar?
Packages for xbattbar-acpi and its dependencies have been uploaded to the 14.1 repositories. I should think they would build for 14.0 without any problems, too.