SparkyLinux Forums

Software & hardware support => Applications => Topic started by: way12go on October 16, 2014, 08:14:04 AM

Title: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on October 16, 2014, 08:14:04 AM
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.
Title: Re: JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: pavroo 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.
Title: Re: JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go 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
Title: Re: JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: pavroo on October 18, 2014, 04:02:54 PM
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}
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on October 19, 2014, 03:25:19 AM
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
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: 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}
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on October 22, 2014, 01:38:12 AM
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
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on October 22, 2014, 01:54:58 AM
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.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on October 22, 2014, 05:11:24 AM
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.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: pavroo on October 22, 2014, 01:11:28 PM
It's strange.
Different computer, different place, different air, who knows what else makes the differences :)
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: seppalta on October 23, 2014, 05:04:09 AM
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.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: pavroo on October 26, 2014, 07:33:41 PM
This is the final version which works for me well.(http://sparkylinux.org/images/bat1.png)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}
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on October 27, 2014, 06:24:03 AM
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.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: pavroo on October 27, 2014, 12:42:39 PM
I'll do what I can, I will have a look into that.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on October 28, 2014, 03:21:25 PM

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$

Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on October 28, 2014, 04:31:11 PM
https://bugs.archlinux.org/task/39872

This is because upower 0.99.x doesn't provide the deprecated interfaces anymore. Batti hasn't been maintained upstream since 2011, so I don't think there will be any official patch for this.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on October 29, 2014, 01:09:03 AM
Is it possible that this

<StartupCommand>xfce4-power-manager</StartupCommand>

is causing batti conflict?
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: pavroo on October 29, 2014, 01:15:50 AM
I don't think so.
Replace it with batti and remove xfce4-power-manager from the system to find out.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on October 29, 2014, 04:10:40 AM
I uninstalled it and replaced its entry with battti but, it doesn't work. Never mind, I'll settle for conky battery status.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on November 27, 2014, 10:42:24 AM
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}


{battery_bar 25,170 BAT1}

{battery_percent BAT1}

Default conky config file doesn't have BAT1.

If I add first line - BAT1 then I can see the indicator fill bar

and if I add BAT1 again in percentage section I can see the percentage.

I don't know why your laptop doesn't need BAT1 but my laptop conky config needs these two additions of BAT1 as mentioned below.

{battery_bar 25,170 BAT1}

{battery_percent BAT1}
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: pavroo on November 27, 2014, 01:32:24 PM
QuoteI don't know why your laptop doesn't need BAT1
I don't know too, but I will run my second, old laptop and I will check it out.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: pavroo on November 27, 2014, 09:32:43 PM
I've checked it as I said before but it works without BAT1 on my second machine.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on December 12, 2014, 11:59:22 AM
I found this

http://www.tigr.net/afterstep/download/asapm/asapm-3.1.tar.gz

I tried to compile it and add to JWM

<Swallow name="asapm">
         asapm
      </Swallow>



http://forum.vectorlinux.com/index.php?topic=7167.0;wap2

Ben1000:
O.k. that works, thanks.

I found a battery monitor myself, so if anybody is interessted: http://freshmeat.net/projects/asapm/

The same programm but in a smaller, thinner skin that fits in to the tray bar you can find here: http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=8699

To show it in the tray bar insert the following in the .jwmrc file between the <tray> tags:
Code:

      <Swallow name="asapm">
         asapm
      </Swallow>


Maybe it would be good, to create a package for vectorlinux...

Greets, Ben


I got errors and couldn't understand any. I installed LXDE but I use JWM. As far as my experience is considered JWM works much faster than LXDE. Web browser uses all RAM and it's very fast in JWM and sometimes hangs using LXDE. For desktop I don't need battery applet but for Laptop I need it. Yes, Laptop has 2 GB RAM.

If this problem can't be solved I will live with LXDE.

Thanks.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on December 12, 2014, 12:27:39 PM
I found awesome window manager

http://l3net.wordpress.com/2013/03/17/a-memory-comparison-of-light-linux-desktops/

According to the above webpage JWM uses 3 MB RAM and awesome window manager uses 9 MB RAM. When I boot with JWM it uses around 70-80 MB RAM.

I installed the "awesome" and "awesome-extra" from Synaptic Package Manager and tried to login with awesome WM but it doesn't show in the options, what I'm saying is... I don't even have the option to select "awesome WM" from DE Menu. Now the "awesome-extra" pack says it has a battery applet so I want to try "awesome WM"

What could possibly go wrong?
Title: Re: [ Solved ] Switching awesome window manager.
Post by: way12go on December 12, 2014, 12:33:11 PM
http://askubuntu.com/questions/164905/awesomewm-returning-to-lightdm-after-trying-to-log-in


leeboyoung@debian:~$ awesome -k
✔ Configuration file syntax OK.
leeboyoung@debian:~$ sudo dpkg-reconfigure --force lightdm awesome
[sudo] password for leeboyoung:
leeboyoung@debian:~$

Solved.


http://askubuntu.com/questions/162516/switching-window-manager-desktop-environments

https://bugs.launchpad.net/ubuntu/+source/awesome/+bug/1094811



There is a bug in awesome-ws, preventing it from showing up in the lightdm/gdm/kdm list.

https://bugs.launchpad.net/ubuntu/+source/awesome/+bug/1094811

Delete `NoDisplay=true' in /usr/share/xsessions/awesome.desktop solves the problem.

If this is solved, you have an icon next to your login where you can switch the window managers.

Now I did EXIT in JWM and selected awesome WM to login and I observed that it takes 95 MB RAM, same as fluxbox I guess. But the appearance was shocking. Yet again I need to edit the config file.

So boring but, worth a try.

User Contributed Widgets

http://awesome.naquadah.org/wiki/User_Contributed_Widgets

I used lxtask and found out awesome takes 120 MB RAM and LXDE takes 150 MB RAM in laptop so LXDE is correct for laptop and JWM is correct for Old Tower/Desktop.

Thanks.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: pavroo on December 12, 2014, 10:24:02 PM
Mayby it'll be interesting for you.
I've been playing with jwm and openbox for next release 3.6 and I activated battery status on tint2 panel.
The config file: ~HOME/.config/tint2/tint2rc - end of the file:
# Battery
battery = 1
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
battery_hide = 99
bat1_font = sans 8
bat2_font = sans 6
battery_font_color = #FFFFFF 74
battery_padding = 1 0
battery_background_id = 0

It looks like that, showing 97% and remaining time 4h 06min:
(http://sparkylinux.org/images/tint2.png)
What do you think?
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on December 14, 2014, 07:17:58 PM
Sorry for the delay. I had to go to some other place...

I was confused about tint2 panel and searched for it and didn't find the panel and then I installed it using Synaptic Package Manager and I searched on google and found this video and this video was like nothing.

It's like a joke. Why did this guy even put up a video?

I guess he is showing his desktop.

Google search title: Simple JWM Desktop + Install Guide - YouTube

https://www.youtube.com/watch?v=Ux5EjFDycTE

I didn't even watch it completely, just closed it assuming it's nothing.

Finally found this...

https://wiki.archlinux.org/index.php/tint2

Run tint2 in terminal and got the config files.

This text is already available

# Battery
battery = 0
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
battery_hide = 98
bat1_font = sans 8
bat2_font = sans 6
battery_font_color = #FFFFFF 74
battery_padding = 1 0
battery_background_id = 0


Need to change battery = 0 but this is desktop so I will try and repost.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on December 15, 2014, 04:23:42 AM
http://crunchbanglinux.org/wiki/tint2


How do I select JWM to use this tint2 panel?
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: pavroo on December 15, 2014, 01:54:14 PM
To activate tint2 on startup, add to ~HOME/.jwmrc (the end section of the file):
<StartupCommand>tint2</StartupCommand>
You should deactivate jwm panel, but I didn't find how to do that yet.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on December 15, 2014, 02:51:06 PM
http://vsido.org/index.php?topic=747.0

Revisited jwm window manager the past few days. Wanted something with a bit more Windows-like user interface to set up my kids user account; and since there always seems to be an interest in wm's that are light on resources, I decided to post the results.

Version 2.1 is in the Sid repos; or you can get Version 2.2.2 from git - http://www.joewing.net/index.shtml

Besides being light on resources (up to 50% less than openbox on some systems, although I get nothing close to that), one thing I like about jwm is that it is self contained. Jwm has it's own panel (called the tray) that can contain a menu, pager, app launch buttons, taskbar, systemtray (called the dock <- poor choice of names there, imo), and the clock. The tray can be horizontal or vertical, and multiple trays can be configured by adding additional Tray entries to the $HOME/.jwmrc; or you can use jwm without a tray by completely removing the Tray section.

In addition to the systemtray, jwm also has the ability to swallow apps into the tray - the example in the Arch wiki is to swallow wicd-gtk --tray - but I haven't gotten it to work. Maybe because I pulled the current version from git.

The other nice thing about jwm is that it is still being developed by the original author, although there can be a lot of time between releases.

All configuration is done through the $HOME/.jwmrc file. This is file is in xml format like the openbox rc.xml file. In addition to the tray configuration, there are sections for autostarted apps, key bindings, and styles - http://www.joewing.net/projects/jwm/config.shtml ; Very easy to navigate and get the wm up and running to suit your needs. However, there are no gui apps to configure the .jwmrc file.

=========

I will try and report.
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on December 15, 2014, 02:54:56 PM
Success. Got it. Just need to configure it.

http://crunchbanglinux.org/wiki/tint2

Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: seppalta on December 16, 2014, 04:19:56 AM
To add a little variety to this discussion, here are some pictures and recipes for fbpanel:   http://lxlinux.com/fbpanel.html .
Title: Re: [ Solved ] JWM Joes Window Manager battery applet for Laptop using Sparkylinux
Post by: way12go on December 16, 2014, 04:43:54 AM
fbpanel works

http://crunchbang.org/forums/viewtopic.php?id=20778

volume: can't open /dev/mixer
fbpanel: can't start plugin volume

what can i do to get around this??


Edit the fbpanel config file:

leafpad ~/.config/fbpanel/default

Find this section:

plugin {
    type = volume
}

Delete it, or comment it out:

#plugin {
#    type = volume
#}

Save the file. fbpanel should now start with no error.


# mkdir ~/.config/fbpanel
# cp /usr/share/fbpanel/default ~/.config/fbpanel
Title: Re: [ Solved ] JWM with fbpanel
Post by: way12go on December 16, 2014, 05:40:35 AM
http://fbpanel.sourceforge.net/docs.html

This will help. I finally use JWM with fbpanel.

I alligned fbpanel to the top to solve the window maximize not displaying/showing error.