]> git.phdru.name Git - dotfiles.git/blobdiff - .mc/mc.ext
.mc: Load songs from a playlist one by one
[dotfiles.git] / .mc / mc.ext
index 7f3b9cdb0ae659bc907a8958bb57fb421dc4a84a..d2444d3bd372968a75e09fd4a8629877793f4dea 100644 (file)
@@ -93,7 +93,7 @@ type/^XML *(1\.0 *)?document
 #   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