Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

[ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux

Started by way12go, October 16, 2014, 08:14:04 AM

Previous topic - Next topic

way12go

JWM Joes Window Manager battery applet for Laptop using Sparkylinux

I installed ibam but it doesn't work.

Quoteibam

No apm data available.

How to enable it in taskbar? Is it possible.
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

pavroo

There is the startup section on the end of '~HOME/.jwmrc' file.
If your app should be started on start up simply add it to the list.
Anyway there is xfce4-power-manager preinstalled.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

way12go


I copied these lines to conky file

Battery:${voffset 02}
${battery_bar 5,150 BAT1}
${battery_percent BAT1}%

Now I can see the battery status on desktop
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

pavroo

I changed it to be looking the same like cpu, mem and swap bars:
${goto 0}${color3}${battery_bar 25,170}
${voffset -33}${goto 20}${color0}${font dodger:size=15}BAT1${font}${goto 120}${voffset -3}${font DejaVu Sans Mono:size=12}${battery_percent} %${font}
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

way12go

Battery:
${goto 0}${color3}${battery_bar 25,170 BAT1}
${voffset -33}${goto 20}${color0}${font dodger:size=15}Battery${font}${goto 120}${voffset -3}${font DejaVu Sans Mono:size=12}${battery_percent BAT1} %${font}


Adding BAT1 is key
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

pavroo

This line should be without "BAT1" on the end, it does not work well for me.
${goto 0}${color3}${battery_bar 25,170}
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

way12go

I got the answer to my problem from some other website and I don't remember which website it is.

It's also posted here.

https://forum.manjaro.org/index.php?topic=4575.0

Update: Here is another

http://bbs.archbang.org/viewtopic.php?pid=9545#p9545
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

way12go

I found the solution here but, couldn't understand it.

http://www.murga-linux.com/puppy/viewtopic.php?search_id=2046890453&t=12394

Also I do use lxtask and conky but it would be great if memory usage is displayed in taskbar.
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

way12go

Quote from: pavroo on October 22, 2014, 01:26:57 AM
This line should be without "BAT1" on the end, it does not work well for me.
${goto 0}${color3}${battery_bar 25,170}

If I remove BAT1 it still works, percentage number shows but the bar indicator doesn't show up.
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

pavroo

It's strange.
Different computer, different place, different air, who knows what else makes the differences :)
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

seppalta

I like fbpanel, which can show cpu, memory-swap, wifi (network) and battery, all with tiny charts in the taskbar section.  Here is a picture link.  (What is the key to actually insert a picture?)
http://lxlinux.com/fbpanel-tbar2.png
Notice that fbpanel also puts each desktop's wallpaper in the panel box for that desktop - adds a little color.

pavroo

This is the final version which works for me well.The code:
${goto 0}${color3}${battery_bar 25,170}
${voffset -33}${goto 20}${color0}${font dodger:size=15}BAT${font}${goto 120}${voffset -3}${font DejaVu Sans Mono:size=12}${battery_percent} %${font}
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

way12go

Quotehttp://www.murga-linux.com/puppy/viewtopic.php?t=14712&sid=f0cadf7d1460a3168e8d45b57b1b3344

This is exactly what I'm looking for. Can you please help me with it?

I've all tray icons I need and, I can add more using or editing jwmrc.xml file.

But, I don't know how to add

RAM indicator

and

Battery indicator for JWM Tray, next to clock.
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

pavroo

Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

way12go


I downloaded this folder

batti-0.3.8

Finally nailed it?

Installed batti-0.3.8  using the below webpage, in the webpage some other app weewx is given.

http://www.weewx.com/docs/setup.htm

http://antix.freeforums.org/batti-gtk-solved-t4662.html?hilit=battery%20monitor

Now I don't know how to start it.

<StartupCommand>/usr/local/bin/batti</StartupCommand>


leeboyoung@leeboyoung:/usr/local/bin$ sudo batti
[sudo] password for leeboyoung:

Neither UPower nor DeviceKit.Power could be initialized!
This can have multiple reasons.
Here is the error for UPower:

    org.freedesktop.DBus.Error.InvalidArgs: No such property CanSuspend

And this is the error for DeviceKit.Power:

    org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.DeviceKit.Power was not provided by any .service files

leeboyoung@leeboyoung:/usr/local/bin$

Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

View the most recent posts on the forum