For me the best part of puppy is the speed at which apps open, aka. no frills approach.
With that in mind I wrote the following.
Copy it to a shell script,
set permissions to runable,
open it,
select a directory,
click the OK button on the GTKDialog window
and
it will open a terminal with mplayer loaded with all of the mp3, wav, and wma files (recursively loaded) in that directory as a looped/shuffled playlist.
To close the app, close the mplayer window then click CANCEL on the GTKDialog window.
Note: if unhappy with a certain song, just select the mplayer/terminal window and push ENTER and it will go to the next song;
if unhappy with the entire folder close the mplayer/term window and select a different directory.
I run 7 desktops so am leaving this as an item on the desktop and then use if it from there.
-peace
Code: Select all
#! /bin/bash
export MAIN_DIALOG='
<vbox>
<frame Player>
<text>
<label>Choose a Directory</label>
</text>
<hbox>
<entry accept="directory">
<label>Select a Directory</label>
<variable>FILE_DIRECTORY</variable>
</entry>
<button>
<input file stock="gtk-open"></input>
<variable>FILE_BROWSE_DIRECTORY</variable>
<action type="fileselect">FILE_DIRECTORY</action>
</button>
</hbox>
</frame>
<hbox>
<button use-stock="true" label="gtk-ok">
<variable>OKBUTTON</variable>
<action>rxvt -hold -e find "$FILE_DIRECTORY" -regextype posix-awk -regex "(.*.mp3|.*.wav|.*.wma)" -exec mplayer -shuffle -loop 0 {} +</action>
</button>
<button cancel></button>
</hbox>
</vbox>
'
gtkdialog --program=MAIN_DIALOG
Ciao!/Chow! And have fun.