home/pbsds: gpu mpv

This commit is contained in:
Peder Bergebakken Sundt 2023-03-11 16:00:42 +01:00
parent a3c26357c5
commit b94ff03fe0
1 changed files with 9 additions and 3 deletions

View File

@ -6,6 +6,12 @@
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.config.osc = "no"; # likely a thumbnail requirement
programs.mpv.scripts = with pkgs.mpvScripts; [ thumbnail ];
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";
}