MPV: Difference between revisions

No edit summary
Zeal (talk | contribs)
Wanted to show how you'd use mpvScripts without using Home Manager.
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
[https://mpv.io/ MPV] is an open-source command line media player.  
{{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.  


== Installation ==
== Installation ==
Line 15: 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 ==