commit 642c0bfae72a4268efe2d93ae50250ca7f62b3f2 parent 0d8c7e39e0b38968aa3d5bb80b16bee452b4db13 Author: Alex Balgavy <alex@balgavy.eu> Date: Mon, 21 Mar 2022 16:19:58 +0100 lf: use mpcq script Diffstat:
M | lf/lfrc | | | 11 | +---------- |
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/lf/lfrc b/lf/lfrc @@ -86,16 +86,7 @@ cmd change %{{ # load audio files/playlists in mpd cmd queue %{{ for i in $fx; do - case "$i" in - *.wav|*.flac|*.mp3|*.m4a|*.opus) - mpc -h ~/.local/share/mpd/socket add "file://$i" - printf "Queued: %s" "$i" - ;; - *.m3u) - mpc -h ~/.local/share/mpd/socket load "file://$i" - printf "Loaded playlist: %s" "$i" - ;; - esac + mpcq "$i" done }} cmd queuenext %{{