aboutsummaryrefslogtreecommitdiff
path: root/modules/mpv.home.nix
blob: c6f0a1b05ed32c905c166e8e80c2ede54b799485 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ config, pkgs, ... }:
{
  programs.mpv = {
    enable = true;

    bindings = {
      "Alt+0" = "set window-scale 0.5";
    };

    config = {
      force-window = true;
      ytdl-format = "bestvideo+bestaudio";
      cache-default = 4000000;
      hwdec = "auto-safe";
      vo = "gpu";
      profile = "gpu-hq";
      save-position-on-quit = true;
    };

    scripts = with pkgs.mpvScripts; [
      uosc
      videoclip # c to clip
      youtube-upnext # <c-u> to show menu
      mpv-cheatsheet # ? to see hints
      # webtorrent-mpv-hook
    ];

    # scriptOpts = {
    #   osc = {
    #     scalewindowed = 2.0;
    #     vidscale = false;
    #     visibility = "always";
    #   };
    # };
  };
}