This code
Code: Select all
#!/bin/ash
# ~/.pekwm/mev-libr-pekwm.sh
# par musher0, 3 janv. & 4 févr. 2015.
####
MEVDISP="`grep Mem /proc/meminfo | tr -s ' ' | tr '\n' ' ' | awk '{ print $5/$2*100 }'`";MEVDISP="${MEVDISP:0:5} %"
# Langues
[ ${LANG:0:2} = "fr" ] && MV="MEV" || MV="RAM"
echo "Dynamic {"
echo " Entry = \" $MV : $MEVDISP\" { Actions = \"Exec /root/my-applications/Systeme/cleanup_memory3 & \" } "
echo " }"
####################
# Ligne appellante dans le menu de pekwm :/ # Calling line in the pekwm menu:
#
# Entry = "" { Actions = "Dynamic $PEK/mev-libr-pekwm.sh"}
#
# Placer de préférence vers le haut du menu. / # Put preferably near the top of the menu.
####################
that you put this line:
Code: Select all
Entry = "" { Actions = "Dynamic $PEK/mev-libr-pekwm.sh"}
The <cleanup_memory3> script (evolved from big_bass's original for Puppy 4.12
"Slaxer"), called by the pekwm menu "Entry" above, can be downloaded from:
http://murga-linux.com/puppy/viewtopic. ... ost#826070
Enjoy!
musher0