
This says that for the command mpv, it should first try to offer files (which includes everything under file-patterns above) and only when that fails, offer other things. To avoid seeing those when there are media files available, add the following: zstyle ':completion:*:mpv:*' tag-order 'files' ( (#q^-/) matches only non-directories, whereas (-/) matches only directories.)īut that's not enough, because the completions supplied with mpv (and you did install those, right?), also try to offer URLs as completions. And only if that fails, too, offer any other kinds of files.

Only if that fails, will it offer directories. This tells Zsh's completion system that, on the first try, complete only files ending in the extensions specified (with the caption "media file", if you have group-name enabled). zshrc: zstyle ':completion:*:mpv:*' file-patterns \ I’ve tested it and it works.)įirst, you need define file-patterns for mpv in your.

You can add both options to mpv.You need to do two things. It was discovered that mpv, a media player, was vulnerable to remote code execution attacks. If you want to infinitely loop a playlist, use loop-playlist=inf. # Create "portable_config" in the same folder as mpv.exe

By setting the list of names to an empty string any image file in the scan locations will be loaded, by setting the list of image extensions to an empty string any file with the right name will be loaded. Place mpv.conf under one of the following directories (depending on your platform): # LinuxĬ:\users\USERNAME\AppData\Roaming\mpv\mpv.conf By default this will be all image files with the specified file names names and image extensions can be modified through the config file. How do I infinitely loop every video I play by defaut with MPV player? Save that into a file, make it executable and put it in your PATH. An overview of the general format of mpv.conf for the most recent versions of mpv can be found here ("Stable" version here). After some trial and error and the help of the internet, I settled on this: /bin/bash pkill -x mpv mpv -player-operation-mode pseudo-gui '1'. button 5 and button 6 Decrease/increase volume. Mouse Control button 3 and button 4 Seek backward/forward 1 minute. While it isn't created by default, mpv supports a file called mpv.conf, which allows mpv behavior to be customized (globally, for particular media extensions, or by setting other custom "profiles" that refer to an arbitrary group of options and that can be used with -profile=). (The following keys are only valid if you compiled with TV or DVB input support.) h and k Select previous/next channel.

As far as I know there is no configuration in this program.
