Update config for mpv in mac for fzf-player
This commit is contained in:
parent
720a4e6ca7
commit
7d19b1af6a
2 changed files with 8 additions and 3 deletions
|
|
@ -148,3 +148,8 @@ profile-restore=copy-equal
|
||||||
sub-font-size=30
|
sub-font-size=30
|
||||||
sub-align-x=right
|
sub-align-x=right
|
||||||
sub-align-y=top
|
sub-align-y=top
|
||||||
|
|
||||||
|
[music-stream]
|
||||||
|
force-window=yes
|
||||||
|
ytdl-format=bestvideo[height<=?720][fps<=?30][vcodec!=?vp9]+bestaudio/best
|
||||||
|
window-maximized=yes
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,9 @@ shift
|
||||||
|
|
||||||
# defaults to celluloid, fallback to mpv
|
# defaults to celluloid, fallback to mpv
|
||||||
if command -v celluloid &>/dev/null; then
|
if command -v celluloid &>/dev/null; then
|
||||||
player="celluloid"
|
player="celluloid --mpv-profile=low-latency,music-stream"
|
||||||
else
|
else
|
||||||
player="mpv --no-video"
|
player="mpv --player-operation-mode=pseudo-gui --profile=low-latency,music-stream"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$url" ]]; then
|
if [[ -z "$url" ]]; then
|
||||||
|
|
@ -30,4 +30,4 @@ if [[ -z "$url" ]]; then
|
||||||
url="${streams[$url]}"
|
url="${streams[$url]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$player "$url"
|
$player "$url" &>/dev/null &
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue