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

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.
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

way12go

Is it possible that this

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

is causing batti conflict?
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

pavroo

I don't think so.
Replace it with batti and remove xfce4-power-manager from the system to find out.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

way12go

I uninstalled it and replaced its entry with battti but, it doesn't work. Never mind, I'll settle for conky battery status.
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

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}


{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}
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

pavroo

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.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

pavroo

I've checked it as I said before but it works without BAT1 on my second machine.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

way12go

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.
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

way12go

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?
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

way12go

#24
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.
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

pavroo

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:

What do you think?
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

way12go

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.
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

way12go

http://crunchbanglinux.org/wiki/tint2


How do I select JWM to use this tint2 panel?
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

pavroo

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.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

way12go

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.
Success gives birth to success? Failure gives birth to failure? - Sagar Gorijala.

View the most recent posts on the forum