Introducing: The all new freememapplet v1.0!
Introducing: The all new freememapplet v1.0!
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.
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 1590 times
[color=#4682B4]Lior Tubi[/color]
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.
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.
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:
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]
I didn't make a dotpup because freememapplet will be available (I hope ) 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:
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?
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
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]
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
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
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
That's my app alright Thanks for the screenshot...
Why don't you change blinky's background to the PuppyXP tray color? Somthing like:
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]
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
changing taskbar widget colours
Done that - very nice thankslior2b wrote: Why don't you change blinky's background to the PuppyXP tray color? Somthing like:Code: Select all
blinky -bg "#3A82F8"
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
freememapplet v1.2, read here.
- Attachments
-
- freememapplet-1.2.tar.gz
- freememapplet v1.2
Binary + Source - (19.87 KiB) Downloaded 1527 times
[color=#4682B4]Lior Tubi[/color]
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
You get "None" because you don't have calcfreespace.sh... actually, I don't have it either 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: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.
Code: Select all
#!/bin/sh
df -k | grep ' /$' | tr -s ' ' | cut -f 4 -d ' '
Also, the help won't work because no /usr/share/doc/freememapplet.htm is available...
[color=#4682B4]Lior Tubi[/color]
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...eMeRy wrote:Seems the bg colour can't be modified... Maybe next version?
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]
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
calcfreespace.sh attached.
Download it to /usr/sbin, then:
#
Download it to /usr/sbin, then:
#
Code: Select all
gunzip calcfreespace.sh.gz
# chmod 755 calcfreespace.sh
- Attachments
-
- calcfreespace.sh.gz
- (328 Bytes) Downloaded 820 times
That fixed it (Puppy2a8). One question: why doesn't it agree with "free"?
- Attachments
-
- freememapplet.jpg
- (17.93 KiB) Downloaded 2485 times