Introducing: The all new freememapplet v1.0!

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
lior2b
Posts: 97
Joined: Sat 04 Feb 2006, 12:15
Location: The Holy Land
Contact:

Introducing: The all new freememapplet v1.0!

#1 Post by lior2b »

I've promised to check out wmpupmem and see if I could fix it. Well, here are the results:

freememapplet v1.0
(*) Complete rewrite, absolutely no code has been copied and pasted (hence the new name)
(*) Gtk1 instead of Xlib. This fixes the problem with JWM swallowing the app...
(*) Tooltips
(*) Enhanced color flashing
(*) Color, time intervals and memory level definitions can be easily set through defined values
(*) Now displays the size in KB, MB, GB, etc. format, instead of only MB.

It is originally made for Puppy2, I'm not sure if this has any use for Puppy1. Please test it (just copy binary to /usr/bin and change .jwmrc-tray from wmpupmem to freememapplet), and post you impressions.
Attachments
freememapplet-1.0.tar.gz
freememapplet v1.0
Binary + Source
(18.63 KiB) Downloaded 1588 times
[color=#4682B4]Lior Tubi[/color]

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post by Flash »

lior2b, the file .jwmrc-tray is found 2 places: /root/.jwmrc-tray and /initrd/pup_ro2/root/.jwmrc-tray. I replaced them both to make sure. Nothing happened so I restarted X to start the program.

It is an application that shows in the system tray when it is running, like SeaMonkey would if it were running. When I clicked it in the system tray, the window showing free memory showed up in the upper left-hand corner of the desktop, covering the "Home" icon. I found that I could right-click on it, choose "move" and drag the window around.

User avatar
lior2b
Posts: 97
Joined: Sat 04 Feb 2006, 12:15
Location: The Holy Land
Contact:

#3 Post by lior2b »

hmmm, I suppose changing /root/.jwmrc-tray is sufficient.

About your experience, I believe you forgot something... Two quick questions: a) Are you running Puppy2? b) Have you changed the name too? it should look like this:

Code: Select all

<Swallow name="freememapplet">
	freememapplet
</Swallow>
[color=#4682B4]Lior Tubi[/color]

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#4 Post by Flash »

No, I hadn't changed the second line to freememapplet. When I did, and restarted X, I can't find the program. How do I start it or where is it in the menu?

User avatar
lior2b
Posts: 97
Joined: Sat 04 Feb 2006, 12:15
Location: The Holy Land
Contact:

#5 Post by lior2b »

I didn't make a dotpup because freememapplet will be available (I hope :P) in the official Puppy2, hence, you can't install it easily as other programs, and it won't show up in the menu. It shouldn't be in the menu anyway, because it is a tray app. Detailed installation insctructions might be:
1) Download freememapplet-1.0.tar.gz
2) Extract and copy the binary to /usr/bin:

Code: Select all

tar xzf freememapplet-1.0.tar.gz && cp freememapplet-1.0/freememapplet /usr/bin/freememapplet
3) Change .jwmrc-tray as described above
4) Restart X (you can restart JWM, but than you will have to kill the old wmpupmem app...)
Expected behavior: A tray app should appear, displaying your free memory...

Does it work for you?
[color=#4682B4]Lior Tubi[/color]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#6 Post by Lobster »

this is what I get in p2a8
You can see the background is dark blue instead of grey - the M looks a bit squashed.
My res is 1280 x 1024

:)

hope that helps -more testers using Puppy2 alpha 8 needed
Attachments
mem.jpg
(3.31 KiB) Downloaded 3588 times
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
lior2b
Posts: 97
Joined: Sat 04 Feb 2006, 12:15
Location: The Holy Land
Contact:

#7 Post by lior2b »

Lobster, that's because it's ain't my app :|
Your screenshot shows the old wmpupmem... Check .jwmrc-tray and see if you've changed both the name attribute and the node's text...
[color=#4682B4]Lior Tubi[/color]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#8 Post by Lobster »

:roll:
You mean follow your instruction :oops:

Downloaded and did again (and altered .jwmrc-tray)

Looks better when you do it right . . .
Attachments
p2c.jpg
(3.64 KiB) Downloaded 3753 times
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
lior2b
Posts: 97
Joined: Sat 04 Feb 2006, 12:15
Location: The Holy Land
Contact:

#9 Post by lior2b »

That's my app alright :D Thanks for the screenshot...
Why don't you change blinky's background to the PuppyXP tray color? Somthing like:

Code: Select all

blinky -bg "#3A82F8"
[color=#4682B4]Lior Tubi[/color]

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#10 Post by Flash »

lior2b, I didn't answer your second question. I'm running the 24 May snapshot of Puppy2.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

changing taskbar widget colours

#11 Post by Lobster »

lior2b wrote: Why don't you change blinky's background to the PuppyXP tray color? Somthing like:

Code: Select all

blinky -bg "#3A82F8"
Done that - very nice thanks
in .jwmrc-tray - maybe that could be done by the JWM configurator?

I also changed the background colour of xload

thanks again
Attachments
p2d.jpg
(2.43 KiB) Downloaded 3967 times
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#12 Post by Nathan F »

That looks great. I'm going to go ahead and try it in 109CE and report back.

Nathan
Bring on the locusts ...

User avatar
eMeRy
Posts: 86
Joined: Sun 22 Jan 2006, 20:22
Location: Hungary,Europe

#13 Post by eMeRy »

Hope the picture go through...
The program on jwm tray of 1.08 puppy. Fine. Seems the bg colour can't be modified... Maybe next version?

eMeRy
Attachments
tray.png
(1.88 KiB) Downloaded 4649 times

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#14 Post by Nathan F »

Also running in 109CE. Very nice.

Nathan
Bring on the locusts ...

User avatar
lior2b
Posts: 97
Joined: Sat 04 Feb 2006, 12:15
Location: The Holy Land
Contact:

#15 Post by lior2b »

freememapplet v1.2, read here.
Attachments
freememapplet-1.2.tar.gz
freememapplet v1.2
Binary + Source
(19.87 KiB) Downloaded 1526 times
[color=#4682B4]Lior Tubi[/color]

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#16 Post by Flash »

I found and deleted the first freememapplet folder from /usr/bin. I think I followed the instructions in your first post, but even after restarting X nothing happened. So I found the gear icon in /usr/bin/freememapplet and clicked it. Here's what I got:
Attachments
freememapplet.jpg
(18.31 KiB) Downloaded 2823 times

User avatar
lior2b
Posts: 97
Joined: Sat 04 Feb 2006, 12:15
Location: The Holy Land
Contact:

#17 Post by lior2b »

BarryK wrote:So, I created a script, /usr/sbin/calcfreespace.sh, that performs a more accurate calculation and modified Lior's program to execute that.
You get "None" because you don't have calcfreespace.sh... actually, I don't have it either :D You have three option: 1) Use the old freememapplet, 2) Wait until Barry releases his script 3) Add a script called calcfreespace.sh in /usr/sbin which has:

Code: Select all

#!/bin/sh
df -k | grep ' /$' | tr -s ' ' | cut -f 4 -d ' '
in it... This what the old freememapplet uses...

Also, the help won't work because no /usr/share/doc/freememapplet.htm is available...
[color=#4682B4]Lior Tubi[/color]

User avatar
lior2b
Posts: 97
Joined: Sat 04 Feb 2006, 12:15
Location: The Holy Land
Contact:

#18 Post by lior2b »

eMeRy wrote:Seems the bg colour can't be modified... Maybe next version?
Actually, the blue background color signifies that your current memory levels are normal. It's blue for normal (>=20M), puprle for low (<20M), and flashing reds for critical (<3M). I hope this stuff will be explaind in a future help document...

I wanted to maintain uniformity, hence I allowed the colors and memory level definitions to be changed at compile time and not through cmd arguments. Meaning Barry will set the colors as he likes, and everyone will be referring to those...
[color=#4682B4]Lior Tubi[/color]

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#19 Post by BarryK »

calcfreespace.sh attached.

Download it to /usr/sbin, then:
#

Code: Select all

 gunzip calcfreespace.sh.gz
# chmod 755 calcfreespace.sh
Attachments
calcfreespace.sh.gz
(328 Bytes) Downloaded 819 times

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#20 Post by Flash »

That fixed it (Puppy2a8). One question: why doesn't it agree with "free"?
Attachments
freememapplet.jpg
(17.93 KiB) Downloaded 2485 times

Post Reply