use home-manager mpv config
This commit is contained in:
parent
491632ba9b
commit
efae34ec37
1 changed files with 41 additions and 35 deletions
|
|
@ -1,43 +1,49 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
programs.mpv = {
|
||||||
(mpv.override {
|
enable = true;
|
||||||
scripts = with mpvScripts; [
|
package = pkgs.mpv;
|
||||||
uosc
|
bindings = { };
|
||||||
sponsorblock
|
config = with config.scheme.withHashtag; {
|
||||||
mpris
|
background-color = "#000000";
|
||||||
];
|
osd-back-color = base11;
|
||||||
})
|
osd-border-color = base11;
|
||||||
];
|
osd-color = base05;
|
||||||
home.file.".config/mpv/mpv.conf" = {
|
osd-shadow-color = base00;
|
||||||
text = with config.scheme; ''
|
sub-font = config.userOptions.fontSans.name;
|
||||||
# Credit to https://github.com/catppuccin/mpv
|
osd-font = config.userOptions.fontSans.name;
|
||||||
# Main mpv options
|
};
|
||||||
background-color='#000000'
|
scripts = with pkgs.mpvScripts; [
|
||||||
osd-back-color='${config.scheme.withHashtag.base11}'
|
uosc
|
||||||
osd-border-color='${config.scheme.withHashtag.base11}'
|
mpv-subtitle-lines # requires uosc
|
||||||
osd-color='${config.scheme.withHashtag.base05}'
|
sponsorblock
|
||||||
osd-shadow-color='${config.scheme.withHashtag.base00}'
|
mpris
|
||||||
|
autosub
|
||||||
# Stats script options
|
youtube-upnext
|
||||||
# Options are on separate lines for clarity
|
youtube-chat
|
||||||
# Colors are in #BBGGRR format
|
mpv-notify-send
|
||||||
script-opts-append=stats-border_color=${base08}
|
];
|
||||||
script-opts-append=stats-font_color=${base06}
|
scriptOpts = {
|
||||||
script-opts-append=stats-plot_bg_border_color=${base16}
|
uosc = {
|
||||||
script-opts-append=stats-plot_bg_color=${base08}
|
color =
|
||||||
script-opts-append=stats-plot_color=${base16}
|
with config.scheme;
|
||||||
|
lib.concatStringsSep "," (
|
||||||
# External script options
|
lib.mapAttrsToList (key: value: "${key}=${value}") {
|
||||||
# It is fine to leave these here even if one does not use these scripts because they are just ignored unless a script uses them
|
foreground = base09;
|
||||||
|
foreground_text = base01;
|
||||||
# UOSC options
|
background = base00;
|
||||||
script-opts-append=uosc-color=foreground=${base09},foreground_text=${base01},background=${base00},background_text=${base05},curtain=${base10},success=${base0B},error=${base08}
|
background_text = base05;
|
||||||
'';
|
curtain = base10;
|
||||||
force = true;
|
success = base0B;
|
||||||
|
error = base08;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue