File : Add play_shuffle.

This commit is contained in:
Dmitry Voronin 2024-02-07 17:06:39 +03:00
parent 745a2fc9b5
commit de0c66001f

View file

@ -10,5 +10,14 @@ function play() {
local targets=${*}
[[ "${targets}" = "" ]] && targets=$(_ls_file)
flatpak run io.mpv.Mpv --no-audio-display ${targets}
flatpak run io.mpv.Mpv --no-video ${targets}
}
# Play media files shuffled from CLI. All files by default.
# Usage: play_shuffle [FILE]
function play_shuffle() {
local targets=${*}
[[ "${targets}" = "" ]] && targets=$(_ls_file)
flatpak run io.mpv.Mpv --no-video --shuffle ${targets}
}