users/kat/media/mpv.nix: Rebound scroll wheel to volume instead of seek

This commit is contained in:
kat witch 2021-05-07 01:18:52 +01:00
parent a148c54d93
commit a04d614cce
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72

View file

@ -4,21 +4,26 @@
programs.mpv = {
enable = true;
scripts = [ pkgs.mpvScripts.sponsorblock ];
config = {
profile = "gpu-hq";
gpu-context = "wayland";
vo = "gpu";
volume-max = 200;
keep-open = true;
opengl-waitvsync = true;
hwdec = "auto";
demuxer-max-bytes = "2000MiB";
demuxer-max-back-bytes = "250MiB";
osd-scale-by-window = false;
osd-bar-h = 2.5; # 3.125 default
osd-border-size = 2; # font border pixels, default 3
term-osd-bar = true;
script-opts = lib.concatStringsSep ","
bindings = let
unbind = "keyup"; in {
"WHEEL_UP" = "add volume 2";
"WHEEL_DOWN" = "add volume -2";
};
config = {
profile = "gpu-hq";
gpu-context = "wayland";
vo = "gpu";
volume-max = 200;
keep-open = true;
opengl-waitvsync = true;
hwdec = "auto";
demuxer-max-bytes = "2000MiB";
demuxer-max-back-bytes = "250MiB";
osd-scale-by-window = false;
osd-bar-h = 2.5; # 3.125 default
osd-border-size = 2; # font border pixels, default 3
term-osd-bar = true;
script-opts = lib.concatStringsSep ","
(lib.mapAttrsToList (k: v: "${k}=${toString v}") {
osc-layout = "slimbox";
osc-vidscale = "no";
@ -31,6 +36,6 @@
osc-seekbarkeyframes = "no";
osc-seekrangestyle = "slider";
});
};
};
};
}
}