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 ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
buildInputs = [ bluez rofi-wayland ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue