]> git.phdru.name Git - dotfiles.git/commitdiff
Feat(.mc/menu): Put random playlist in `/tmp/`
authorOleg Broytman <phd@phdru.name>
Sun, 27 Nov 2022 14:35:11 +0000 (17:35 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 27 Nov 2022 14:35:11 +0000 (17:35 +0300)
Requires latest version of `shuffle-playlist.py`.

.mc/menu

index d9cd8b079113d86b1d2eb34aef8cadf33d69ae75..89bd7abca2b8d4396f4b71a8ce4ef5b39e52d371 100644 (file)
--- a/.mc/menu
+++ b/.mc/menu
@@ -178,16 +178,16 @@ P  Play the audiofile(s) or playlist(s)
 
 + t lr & f \.m3u8?
 R  Play the playlist in random order
-   "$HOME"/prog/audio-cdr-video/audio/shuffle-playlist.py %f random-playlist-tmp.m3u
+   "$HOME"/prog/audio-cdr-video/audio/shuffle-playlist.py %f /tmp/random-playlist-tmp.m3u
    #if [ "`audtool --get-volume`" -eq 0 ]; then audacious & sleep 3; fi
    #audtool --playlist-clear
    #while read song; do
    #   audtool --playlist-addurl "$song"
-   #done < random-playlist-tmp.m3u
+   #done < /tmp/random-playlist-tmp.m3u
    #audtool --playback-play
-   deadbeef --queue random-playlist-tmp.m3u & deadbeef --play
-   #mplayer -playlist random-playlist-tmp.m3u &
-   (sleep 5; exec rm random-playlist-tmp.m3u) &
+   deadbeef --queue /tmp/random-playlist-tmp.m3u & deadbeef --play
+   #mplayer -playlist /tmp/random-playlist-tmp.m3u &
+   (sleep 5; exec rm /tmp/random-playlist-tmp.m3u) &
 
 + t lr & f \.(m3u8?|mp3|MP3|cue|aac|ac3|ape|dts|flac|ogg|OGG|pls|WAV|wav|wv|avi|AVI|flv|m2ts|m4v|mka|mkv|MKV|mov|MOV|mp4|MP4|mpg|MPG|vob|VOB|wma|wmv)$
 i  Audio/video info