cleanup mpv
This commit is contained in:
parent
c97f8487d0
commit
a9c11e0bff
2 changed files with 10 additions and 2 deletions
|
@ -17,6 +17,7 @@ stdenvNoCC.mkDerivation {
|
|||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ bluez rofi-wayland ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue