Update config for mpv in mac for fzf-player

This commit is contained in:
aleidk 2023-11-01 13:55:55 -03:00
parent 720a4e6ca7
commit 7d19b1af6a
2 changed files with 8 additions and 3 deletions

View file

@ -148,3 +148,8 @@ profile-restore=copy-equal
sub-font-size=30
sub-align-x=right
sub-align-y=top
[music-stream]
force-window=yes
ytdl-format=bestvideo[height<=?720][fps<=?30][vcodec!=?vp9]+bestaudio/best
window-maximized=yes

View file

@ -20,9 +20,9 @@ shift
# defaults to celluloid, fallback to mpv
if command -v celluloid &>/dev/null; then
player="celluloid"
player="celluloid --mpv-profile=low-latency,music-stream"
else
player="mpv --no-video"
player="mpv --player-operation-mode=pseudo-gui --profile=low-latency,music-stream"
fi
if [[ -z "$url" ]]; then
@ -30,4 +30,4 @@ if [[ -z "$url" ]]; then
url="${streams[$url]}"
fi
$player "$url"
$player "$url" &>/dev/null &