2023-11-04 16:12:45 +05:30
|
|
|
{ pkgs, ... }: {
|
2023-04-07 19:09:05 +05:30
|
|
|
programs.mpv = {
|
|
|
|
enable = true;
|
2024-06-02 23:35:30 +05:30
|
|
|
package = pkgs.mpv.override { youtubeSupport = true; scripts = with pkgs.mpvScripts; [ mpris modernx thumbfast ]; };
|
2023-04-07 19:09:05 +05:30
|
|
|
config = {
|
2024-06-02 23:35:30 +05:30
|
|
|
border = "no";
|
|
|
|
osc = "no";
|
2023-05-06 00:19:51 +05:30
|
|
|
cache = "yes";
|
2023-07-11 22:11:11 +05:30
|
|
|
cache-secs = "120";
|
2023-04-07 19:09:05 +05:30
|
|
|
hwdec = "auto-safe";
|
|
|
|
gpu-context = "wayland";
|
2024-06-22 23:26:16 +05:30
|
|
|
vo = "gpu-next";
|
2023-04-07 19:09:05 +05:30
|
|
|
};
|
2023-11-04 16:12:45 +05:30
|
|
|
defaultProfiles = [ "gpu-hq" ];
|
2024-06-02 23:35:30 +05:30
|
|
|
scriptOpts = {
|
|
|
|
thumbfast = {
|
|
|
|
network = "yes";
|
|
|
|
hwdec = "yes";
|
|
|
|
};
|
|
|
|
};
|
2023-04-07 19:09:05 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
xdg.desktopEntries = {
|
|
|
|
"umpv" = {
|
|
|
|
name = "umpv Media Player";
|
|
|
|
exec = "umpv --player-operation-mode=pseudo-gui -- %U";
|
|
|
|
noDisplay = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|