MPV: Difference between revisions

DoggoBit (talk | contribs)
add infobox
Zeal (talk | contribs)
Wanted to show how you'd use mpvScripts without using Home Manager.
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Infobox application|name=mpv|type=CLI|image=File:Unofficial_Mpv_logo_(with_gradients).svg|website=[https://mpv.io/ mpv.io]|documentation=[https://mpv.io/manual/ mpv Manual]|bugTracker=[https://github.com/mpv-player/mpv/issues GitHub Issues]|github=mpv-player/mpv|firstRelease=7 August 2023|latestRelease=0.40.0|os=Linux, macOS, Windows|programmingLanguage=C}}
{{DISPLAYTITLE:mpv}}
{{Infobox application
| name = mpv
| type = CLI
| image = Unofficial_Mpv_logo_(with_gradients).svg
| website = [https://mpv.io/ mpv.io]
| documentation = [https://mpv.io/manual/ mpv Manual]
| bugTracker = [https://github.com/mpv-player/mpv/issues GitHub Issues]
| github = mpv-player/mpv
| latestRelease = 0.40.0; 11 June 2025
| os = Linux, macOS, Windows
| programmingLanguage = C
| initialRelease = 7 August 2023
}}


'''mpv''' is an open-source command line media player.  
'''mpv''' is an open-source command line media player.  
Line 17: Line 30:
</syntaxhighlight>
</syntaxhighlight>
==== With Home Manager ====
==== With Home Manager ====
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">home.packages = [  
home.packages = [  
   pkgs.mpv  
   pkgs.mpv  
];
];</syntaxhighlight>'''With mpvScripts'''<syntaxhighlight lang="nix">{ pkgs, ... }:
</syntaxhighlight>
{
  environment.systemPackages = with pkgs; [
    ( mpv.override { scripts = [
      mpvScripts.uosc
      mpvScripts.sponsorblock
    ]; } )
  ];
}</syntaxhighlight>
 
== Configuration ==
== Configuration ==