nixfiles/home/apps/mpv.nix
ChaotiCryptidz ac51f8cdb5
*honk*
2022-03-02 16:19:09 +00:00

26 lines
798 B
Nix

{ config, pkgs, ... }: {
home.packages = with pkgs; [ mpv ffmpeg yt-dlp ];
programs.mpv = {
enable = true;
config = {
script-opts = "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp";
slang = "en";
track-auto-selection = true;
embeddedfonts = false;
sub-ass-force-style = "FontName=Comic Sans MS";
sub-ass-override = "strip";
};
profiles = {
ontop = {
ontop = true;
on-all-workspaces = true;
window-scale = 0.5;
cursor-autohide = 3;
};
};
};
programs.zsh.shellAliases.mpv-ontop = "mpv --profile=ontop";
programs.zsh.shellAliases.listen = ''
mpv "https://music:$(cat /secrets/music-stream-password)@stream.owo.monster/flac" --cache=yes --cache-pause-initial=yes --cache-pause-wait=5'';
}