cleanup mpv

This commit is contained in:
Adithya 2024-06-02 23:35:30 +05:30
parent c97f8487d0
commit a9c11e0bff
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
2 changed files with 10 additions and 2 deletions

View file

@ -17,6 +17,7 @@ stdenvNoCC.mkDerivation {
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ bluez rofi-wayland ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin

View file

@ -1,15 +1,22 @@
{ pkgs, ... }: { { pkgs, ... }: {
programs.mpv = { programs.mpv = {
enable = true; enable = true;
package = pkgs.mpv.override { youtubeSupport = true; }; package = pkgs.mpv.override { youtubeSupport = true; scripts = with pkgs.mpvScripts; [ mpris modernx thumbfast ]; };
config = { config = {
border = "no";
osc = "no";
cache = "yes"; cache = "yes";
cache-secs = "120"; cache-secs = "120";
hwdec = "auto-safe"; hwdec = "auto-safe";
gpu-context = "wayland"; gpu-context = "wayland";
}; };
defaultProfiles = [ "gpu-hq" ]; defaultProfiles = [ "gpu-hq" ];
scripts = with pkgs.mpvScripts; [ mpv-webm mpris sponsorblock thumbfast thumbnail ]; scriptOpts = {
thumbfast = {
network = "yes";
hwdec = "yes";
};
};
}; };
xdg.desktopEntries = { xdg.desktopEntries = {