You are not logged in.

#1 2022-06-07 09:50:20

marlhin
Member
Registered: 2018-06-26
Posts: 6

JWM Battery status on tray bar

Hey guys,

so I recently installed JWM on my system and I really like it so far. But there is one thing I wasn't able to manage to get working: some battery indicator on the status bar as to what percentage is left on my laptop battery.
A basic

cat /sys/class/power_supply/BAT0/capacity

would suffice for now but how would I get this information on the bar?

When configuring JWM there is a so called "swallow" method for the tray bar. While having read the official documentation about it I still couldn't quite understand what exactly it does. Here is what one would find in the documentation about swallow:

Swallow a program into the tray. The text of this tag gives the command to run. This tag supports the following attributes:
    name
    The name of the program to swallow. This attribute is required since this is how JWM finds the program to swallow.
    width
    The width of the swallowed program. 0 indicates that the width should be determined from the tray and size requested from the program. The default is 0.
    height
    The height of the swallowed program. 0 indicates that the height should be determined from the tray and size requested from the program. The default is 0.

I have already searched on the web quite a bit but I couldn't find any useful information yet. Would appreciate any help! Thanks!

Offline

#2 2022-06-12 16:22:11

marlhin
Member
Registered: 2018-06-26
Posts: 6

Re: JWM Battery status on tray bar

*Bump*

Still struggling to configure my status bar to have a battery indicator...

Offline

#3 2022-06-12 16:53:56

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: JWM Battery status on tray bar

https://wiki.archlinux.org/title/Genera … es#Bumping

Try cbatticon.

Or jwmtools from the AUR or JWM_Kit (I don't see a package for this one, but I might have missed it.

I found all those with a simple web search for "jwm battery status". There are probably more.

Offline

#4 2022-06-12 17:05:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,497
Website

Re: JWM Battery status on tray bar

There is no need to use a jwm specific program - just look for any tray battery / power indicator.  There are plenty of them.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB