2023-03-29 21:48:55 +05:30
|
|
|
{ pkgs, ... }: {
|
2023-03-22 23:27:24 +05:30
|
|
|
xdg.desktopEntries."mpv".name = "mpv Media Player";
|
|
|
|
xdg.desktopEntries."mpv".exec = "mpv --player-operation-mode=pseudo-gui -- %U";
|
|
|
|
xdg.desktopEntries."mpv".noDisplay = true;
|
|
|
|
|
|
|
|
xdg.desktopEntries."umpv".name = "umpv Media Player";
|
|
|
|
xdg.desktopEntries."umpv".exec = "umpv --player-operation-mode=pseudo-gui -- %U";
|
|
|
|
xdg.desktopEntries."umpv".noDisplay = true;
|
|
|
|
|
2023-03-15 22:11:59 +05:30
|
|
|
home.packages = with pkgs; [
|
|
|
|
celluloid
|
|
|
|
spotify-tui
|
|
|
|
playerctl
|
|
|
|
];
|
|
|
|
programs.mpv = {
|
|
|
|
enable = true;
|
2023-03-29 21:48:55 +05:30
|
|
|
package = pkgs.mpv.override { youtubeSupport = true; };
|
2023-03-15 22:11:59 +05:30
|
|
|
config = {
|
|
|
|
hwdec = "auto-safe";
|
|
|
|
gpu-context = "wayland";
|
|
|
|
};
|
2023-03-29 21:48:55 +05:30
|
|
|
defaultProfiles = [ "gpu-hq" ];
|
|
|
|
scripts = with pkgs.mpvScripts; [ mpris ];
|
2023-03-15 22:11:59 +05:30
|
|
|
};
|
|
|
|
}
|