Author Topic: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux  (Read 9277 times)

Offline way12go

  • Sr. Member
  • ****
  • Posts: 479
  • Life is unlimited stories.
JWM Joes Window Manager battery applet for Laptop using Sparkylinux

I installed ibam but it doesn't work.

Quote
ibam

No apm data available.

How to enable it in taskbar? Is it possible.
« Last Edit: October 19, 2014, 03:18:52 am by way12go »
Life is unlimited stories and every story has its place. Story script is written and is to be written.

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1720
    • SparkyLinux
Re: JWM Joes Window Manager battery applet for Laptop using Sparkylinux
« Reply #1 on: October 16, 2014, 12:46:30 pm »
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

Offline way12go

  • Sr. Member
  • ****
  • Posts: 479
  • Life is unlimited stories.
Re: JWM Joes Window Manager battery applet for Laptop using Sparkylinux
« Reply #2 on: October 18, 2014, 02:14:09 pm »

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
Life is unlimited stories and every story has its place. Story script is written and is to be written.

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1720
    • SparkyLinux
Re: JWM Joes Window Manager battery applet for Laptop using Sparkylinux
« Reply #3 on: October 18, 2014, 04:02:54 pm »
I changed it to be looking the same like cpu, mem and swap bars:
Code: [Select]
${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

Offline way12go

  • Sr. Member
  • ****
  • Posts: 479
  • Life is unlimited stories.
Code: [Select]
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
Life is unlimited stories and every story has its place. Story script is written and is to be written.

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1720
    • SparkyLinux
This line should be without "BAT1" on the end, it does not work well for me.
Code: [Select]
${goto 0}${color3}${battery_bar 25,170}
Nothing is easy as it looks.
Danielle Steel

Offline way12go

  • Sr. Member
  • ****
  • Posts: 479
  • Life is unlimited stories.
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
« Last Edit: October 22, 2014, 01:41:42 am by way12go »
Life is unlimited stories and every story has its place. Story script is written and is to be written.

Offline way12go

  • Sr. Member
  • ****
  • Posts: 479
  • Life is unlimited stories.
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.
Life is unlimited stories and every story has its place. Story script is written and is to be written.

Offline way12go

  • Sr. Member
  • ****
  • Posts: 479
  • Life is unlimited stories.
This line should be without "BAT1" on the end, it does not work well for me.
Code: [Select]
${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.
Life is unlimited stories and every story has its place. Story script is written and is to be written.

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1720
    • SparkyLinux
It's strange.
Different computer, different place, different air, who knows what else makes the differences :)
Nothing is easy as it looks.
Danielle Steel

Offline seppalta

  • Full Member
  • ***
  • Posts: 136
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.
« Last Edit: October 23, 2014, 05:18:25 am by seppalta »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1720
    • SparkyLinux
This is the final version which works for me well.
http://sparkylinux.org/images/bat1.png
The code:
Code: [Select]
${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

Offline way12go

  • Sr. Member
  • ****
  • Posts: 479
  • Life is unlimited stories.
Quote
http://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.
Life is unlimited stories and every story has its place. Story script is written and is to be written.

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1720
    • SparkyLinux
I'll do what I can, I will have a look into that.
Nothing is easy as it looks.
Danielle Steel

Offline way12go

  • Sr. Member
  • ****
  • Posts: 479
  • Life is unlimited stories.

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$

« Last Edit: October 28, 2014, 03:23:19 pm by way12go »
Life is unlimited stories and every story has its place. Story script is written and is to be written.