http://www.murga-linux.com/puppy/viewtopic.php?t=39223
this XFE uses < 1/2 of the resources that ROX does (but then I didn't try compiling ROX against static gtk2)
Quoting myself... now that is vanity.and a more resource friendly volume control in gtkdialog tips, but here it is again
make a symlink for Xdialog-notitle and set up a group to set its properties in the .jwmrc template - I have done it for Xdialog here to make a volume slider activated by a tray button (the symlink is so that programs that NEED the title bar will still have them) This should work for Gtkdialog as well.
<Group>
<Name>Xdialog-notitle</Name>
<Option>notitle</Option>
<Option>layer:12</Option>
</Group>
This will make it stay on top and have no title bar
here is the button for /root/.jwmrc-tray (it goes after the "dock" and before swallowed applets)
<Dock/><TrayButton popup="Audio Control" icon="audio-volume-high.png">exec:SetVol</TrayButton>
Code: Select all
#!/bin/sh
VOLUME=`amixer get Master | grep 'Mono:' | cut -d '%' -f 1 | cut -d '[' -f 2`
VOLUME=`Xdialog-notitle --stdout --under-mouse --title "SetVol" --buttons-style text --icon /usr/share/mini-icons/audio-volume-high.png \
--ok-label Set --cancel-label Advanced --rangebox "Master Volume" 9 25 0 100 $VOLUME`
if [ $? -eq 1 ];then
rxvt +sb -geometry 95x20 -e alsamixer
else
amixer set Master $VOLUME"%"
fi
aplay /usr/share/audio/2barks.au &