2023-03-04 00:09:57 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2023-03-09 07:03:15 +01:00
|
|
|
#home.packages = with pkgs; [ mpv ];
|
|
|
|
|
2023-03-04 00:09:57 +01:00
|
|
|
programs.mpv.enable = true;
|
2023-03-11 16:00:42 +01:00
|
|
|
programs.mpv.bindings."n" = "sub-seek 1";
|
2023-03-04 00:09:57 +01:00
|
|
|
programs.mpv.bindings."SHIFT+n" = "sub-seek -1";
|
2023-03-08 22:48:40 +01:00
|
|
|
programs.mpv.bindings."b" = ''cycle-values audio-channels 2 "auto"'';
|
2023-06-13 01:07:47 +02:00
|
|
|
|
|
|
|
#programs.mpv.scripts = with pkgs.mpvScripts; [ thumbnail mpris ];
|
|
|
|
#programs.mpv.config.osc = "no"; # likely a 'thumbnail' requirement
|
2023-03-11 16:00:42 +01:00
|
|
|
|
|
|
|
#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";
|
2023-03-04 00:09:57 +01:00
|
|
|
}
|