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

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't
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 »
Existence is all about what matters and what doesn't. - Sagar Gorijala.

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1467
    • 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.

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't
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
Existence is all about what matters and what doesn't. - Sagar Gorijala.

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1467
    • 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.

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't
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
Existence is all about what matters and what doesn't. - Sagar Gorijala.

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1467
    • 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.

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't
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 »
Existence is all about what matters and what doesn't. - Sagar Gorijala.

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't
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.
Existence is all about what matters and what doesn't. - Sagar Gorijala.

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't
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.
Existence is all about what matters and what doesn't. - Sagar Gorijala.

Offline pavroo

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

Offline seppalta

  • Jr. Member
  • **
  • Posts: 96
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: 1467
    • 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.

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't
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.
Existence is all about what matters and what doesn't. - Sagar Gorijala.

Offline pavroo

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

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't

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 »
Existence is all about what matters and what doesn't. - Sagar Gorijala.