summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-07-02 19:44:11 +0200
committerlassulus <git@lassul.us>2023-07-02 19:50:23 +0200
commit8ea8fcf31da16565b2183b6bf2b2ca1daf0799c7 (patch)
tree112dc2b98b0923431e8957f2d908a6348e061229
parent58afd36741a95bb11c40942a9f4daf3082fbcba2 (diff)
l mpv: fix slow gpu output
-rw-r--r--lass/2configs/mpv.nix10
1 files changed, 1 insertions, 9 deletions
diff --git a/lass/2configs/mpv.nix b/lass/2configs/mpv.nix
index ac0eab8a3..e57597d3d 100644
--- a/lass/2configs/mpv.nix
+++ b/lass/2configs/mpv.nix
@@ -72,14 +72,7 @@ let
paths = [
(pkgs.writeDashBin "mpv" ''
set -efu
- if [ -n "''${DISPLAY+x}" ]; then
- Y_RES=$(${pkgs.xorg.xrandr}/bin/xrandr |
- ${pkgs.jc}/bin/jc --xrandr |
- ${pkgs.jq}/bin/jq '.screens[0].current_width'
- )
- else
- Y_RES=1000
- fi
+ Y_RES=1081
# we need to disable sponsorblock local database because of
# https://github.com/po5/mpv_sponsorblock/issues/31
exec ${pkgs.mpv.override {
@@ -88,7 +81,6 @@ let
youtube-quality
];
}}/bin/mpv \
- -vo=gpu \
--no-config \
--input-conf=${mpvInput} \
--include=${mpvConfig} \