nixfiles/home/apps/mpv.nix

26 lines
798 B
Nix
Raw Normal View History

2022-02-02 15:49:09 +00:00
{ config, pkgs, ... }: {
home.packages = with pkgs; [ mpv ffmpeg yt-dlp ];
programs.mpv = {
enable = true;
config = {
2022-03-02 16:19:09 +00:00
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;
};
2022-02-02 15:49:09 +00:00
};
};
2022-03-02 16:19:09 +00:00
programs.zsh.shellAliases.mpv-ontop = "mpv --profile=ontop";
2022-02-15 11:04:08 +00:00
programs.zsh.shellAliases.listen = ''
2022-03-02 16:19:09 +00:00
mpv "https://music:$(cat /secrets/music-stream-password)@stream.owo.monster/flac" --cache=yes --cache-pause-initial=yes --cache-pause-wait=5'';
2022-02-02 15:49:09 +00:00
}