# View=%view{ascii} unzip -v %f
#
include/audio
- Open=[ "`audtool --get-volume`" -eq 0 ] && (audacious & sleep 3); audtool --playlist-clear --playlist-addurl %f --playback-play
+ Open=[ "`audtool --get-volume`" -eq 0 ] && (audacious & sleep 3); audtool --playlist-clear; case %f in *.m3u) while read song; do audtool --playlist-addurl "$song"; done < %f ;; *) audtool --playlist-addurl %f ;; esac; audtool --playback-play
#Open=mplayer %f &
#Open=deadbeef %f &
View=%view{ascii} %f
a Add the audiofile(s) or playlist(s)
if [ "`audtool --get-volume`" -eq 0 ]; then audacious & sleep 3; fi
for f in %s; do
- audtool --playlist-addurl "$f"
+ case "$f" in
+ *.m3u) while read song; do
+ audtool --playlist-addurl "$song"
+ done < "$f" ;;
+ *) audtool --playlist-addurl "$f" ;;
+ esac
done
#deadbeef --queue %s &
if [ "`audtool --get-volume`" -eq 0 ]; then audacious & sleep 3; fi
audtool --playlist-clear
for f in %s; do
- audtool --playlist-addurl "$f"
+ case "$f" in
+ *.m3u) while read song; do
+ audtool --playlist-addurl "$song"
+ done < "$f" ;;
+ *) audtool --playlist-addurl "$f" ;;
+ esac
done
#deadbeef --queue %s &
if [ "`audtool --get-volume`" -eq 0 ]; then audacious & sleep 3; fi
audtool --playlist-clear
for f in %s; do
- audtool --playlist-addurl "$f"
+ case "$f" in
+ *.m3u) while read song; do
+ audtool --playlist-addurl "$song"
+ done < "$f" ;;
+ *) audtool --playlist-addurl "$f" ;;
+ esac
done
exec audtool --playback-play
#mplayer -playlist %f &
"$HOME"/admin/prog/audio-cdr-video/audio/shuffle-playlist.py %f random-playlist-tmp.m3u
if [ "`audtool --get-volume`" -eq 0 ]; then audacious & sleep 3; fi
audtool --playlist-clear
- audtool --playlist-addurl random-playlist-tmp.m3u
+ while read song; do
+ audtool --playlist-addurl "$song"
+ done < random-playlist-tmp.m3u
audtool --playback-play
#mplayer -playlist random-playlist-tmp.m3u &
#deadbeef --queue random-playlist-tmp.m3u & deadbeef --play