You are not logged in.
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/capacitywould 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
*Bump*
Still struggling to configure my status bar to have a battery indicator...
Offline
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
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