]> git.phdru.name Git - dotfiles.git/commitdiff
.mc/menu: Improve `deadbeef` command lines
authorOleg Broytman <phd@phdru.name>
Mon, 27 Feb 2023 07:47:03 +0000 (10:47 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 27 Feb 2023 07:47:03 +0000 (10:47 +0300)
.mc/menu

index 89bd7abca2b8d4396f4b71a8ce4ef5b39e52d371..0ee123376373f31b4262a6b2d5406681738b4473 100644 (file)
--- a/.mc/menu
+++ b/.mc/menu
@@ -158,7 +158,7 @@ p  Load the audiofile(s) or playlist(s)
    #      *) audtool --playlist-addurl "$f" ;;
    #   esac
    #done
-   deadbeef --queue %s &
+   deadbeef %s & (sleep 1; exec deadbeef --stop)
 
 + t lr & f \.(aac|ac3|ape|cue|dts|flac|m3u8?|mka|mp3|MP3|ogg|OGG|pls|WAV|wav|wv)$ | t t
 P  Play the audiofile(s) or playlist(s)
@@ -185,7 +185,7 @@ R  Play the playlist in random order
    #   audtool --playlist-addurl "$song"
    #done < /tmp/random-playlist-tmp.m3u
    #audtool --playback-play
-   deadbeef --queue /tmp/random-playlist-tmp.m3u & deadbeef --play
+   deadbeef /tmp/random-playlist-tmp.m3u &
    #mplayer -playlist /tmp/random-playlist-tmp.m3u &
    (sleep 5; exec rm /tmp/random-playlist-tmp.m3u) &