From b94ff03fe096742de5741b4832aba7fdd15675ec Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 11 Mar 2023 16:00:42 +0100 Subject: [PATCH] home/pbsds: gpu mpv --- users/pbsds/home/profiles/mpv.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/users/pbsds/home/profiles/mpv.nix b/users/pbsds/home/profiles/mpv.nix index fe51e73..a0e5fb5 100644 --- a/users/pbsds/home/profiles/mpv.nix +++ b/users/pbsds/home/profiles/mpv.nix @@ -3,9 +3,15 @@ #home.packages = with pkgs; [ mpv ]; programs.mpv.enable = true; - programs.mpv.bindings."n" = "sub-seek 1"; + 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"; }