From a9c11e0bff4ed805d75a63980f7112db892acad6 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 2 Jun 2024 23:35:30 +0530 Subject: [PATCH] cleanup mpv --- extra-packages/rofi-bluetooth/default.nix | 1 + home/programs/mpv.nix | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/extra-packages/rofi-bluetooth/default.nix b/extra-packages/rofi-bluetooth/default.nix index df81d2b..b12cd2e 100644 --- a/extra-packages/rofi-bluetooth/default.nix +++ b/extra-packages/rofi-bluetooth/default.nix @@ -17,6 +17,7 @@ stdenvNoCC.mkDerivation { }; nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ bluez rofi-wayland ]; installPhase = '' mkdir -p $out/bin diff --git a/home/programs/mpv.nix b/home/programs/mpv.nix index 11dffd0..a07a26b 100644 --- a/home/programs/mpv.nix +++ b/home/programs/mpv.nix @@ -1,15 +1,22 @@ { pkgs, ... }: { programs.mpv = { enable = true; - package = pkgs.mpv.override { youtubeSupport = true; }; + package = pkgs.mpv.override { youtubeSupport = true; scripts = with pkgs.mpvScripts; [ mpris modernx thumbfast ]; }; config = { + border = "no"; + osc = "no"; cache = "yes"; cache-secs = "120"; hwdec = "auto-safe"; gpu-context = "wayland"; }; defaultProfiles = [ "gpu-hq" ]; - scripts = with pkgs.mpvScripts; [ mpv-webm mpris sponsorblock thumbfast thumbnail ]; + scriptOpts = { + thumbfast = { + network = "yes"; + hwdec = "yes"; + }; + }; }; xdg.desktopEntries = {