Skip to content

Extra params to mpv and fzf #521

Discussion options

You must be logged in to vote

for fzf:
in your ~/.config/ytfzf/conf.sh you can put FZF_DEFAULT_OPTS="--some --fzf --options"

There is no equivalent for mpv, the best way to do it would be to add this function to ~/.config/ytfzf/conf.sh

video_player () {
    [ "$is_detach" -eq 1 ] && use_detach_cmd=detach_cmd || use_detach_cmd=''
    $use_detach_cmd mpv --ytdl-format="$ytdl_pref" --some-extra-mpv-opts "$@"
}

This will not work for audio because you'd need to define the audio_player function, but I'm assuming you're not using --autofit in audio only.

Writing this has made me realize that I should make ytfzf handle the setting of $use_detach_cmd, so all you'd have to add is the 2nd line in the function.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by guilhermeprokisch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants