config/users/pbsds/home/profiles/mpv.nix

18 lines
646 B
Nix

{ pkgs, ... }:
{
#home.packages = with pkgs; [ mpv ];
programs.mpv.enable = true;
programs.mpv.bindings."n" = "sub-seek 1";
programs.mpv.bindings."SHIFT+n" = "sub-seek -1";
programs.mpv.bindings."b" = ''cycle-values audio-channels 2 "auto"'';
programs.mpv.scripts = with pkgs.mpvScripts; [ thumbnail mpris ];
programs.mpv.config.osc = "no"; # likely a 'thumbnail' requirement
#https://nixos.wiki/wiki/Accelerated_Video_Playback
programs.mpv.config.hwdec = "auto-safe";
programs.mpv.config.vo = "gpu";
programs.mpv.config.profile = "gpu-hq";
programs.mpv.config.gpu-context = "wayland";
}