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.
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.
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
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}
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
This line should be without "BAT1" on the end, it does not work well for me.
${goto 0}${color3}${battery_bar 25,170}
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
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.
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.
It's strange.
Different computer, different place, different air, who knows what else makes the differences :)
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.pngNotice that fbpanel also puts each desktop's wallpaper in the panel box for that desktop - adds a little color.
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}
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.
I'll do what I can, I will have a look into that.
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.htmhttp://antix.freeforums.org/batti-gtk-solved-t4662.html?hilit=battery%20monitorNow 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$
https://bugs.archlinux.org/task/39872This 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.
Is it possible that this
<StartupCommand>xfce4-power-manager</StartupCommand>
is causing batti conflict?
I don't think so.
Replace it with batti and remove xfce4-power-manager from the system to find out.
I uninstalled it and replaced its entry with battti but, it doesn't work. Never mind, I'll settle for conky battery status.
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}
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.
I've checked it as I said before but it works without BAT1 on my second machine.
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.
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?
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.
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?
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.
http://crunchbanglinux.org/wiki/tint2
How do I select JWM to use this tint2 panel?
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.
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. Got it. Just need to configure it.
http://crunchbanglinux.org/wiki/tint2
To add a little variety to this discussion, here are some pictures and recipes for
fbpanel:
http://lxlinux.com/fbpanel.html .
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
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.