mpv: init mpvScripts.modernz (#1067)

A pleasant mpv UI alternative
This commit is contained in:
hetraeus 2025-03-29 19:21:44 +01:00 committed by GitHub
parent 2fb8321ea1
commit 0323253b3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 49 additions and 10 deletions

View file

@ -17,17 +17,37 @@
osd-shadow-color = base00;
};
scriptOpts.uosc.color =
with config.lib.stylix.colors;
lib.concatMapAttrsStringSep "," (name: value: "${name}=${value}") {
background = base00;
background_text = base05;
foreground = base05;
foreground_text = base00;
curtain = base0D;
success = base0A;
error = base0F;
scriptOpts = {
uosc.color =
with config.lib.stylix.colors;
lib.concatMapAttrsStringSep "," (name: value: "${name}=${value}") {
background = base00;
background_text = base05;
foreground = base05;
foreground_text = base00;
curtain = base0D;
success = base0A;
error = base0F;
};
modernz = with config.lib.stylix.colors.withHashtag; {
seekbarfg_color = base0D;
seekbarbg_color = base03;
seekbar_cache_color = base03;
window_title_color = base03;
window_controls_color = base03;
title_color = base05;
time_color = base05;
chapter_title_color = base05;
cache_info_color = base05;
middle_buttons_color = base0D;
side_buttons_color = base03;
playpause_color = base0D;
hover_effect_color = base0E;
};
};
};
};
}

View file

@ -0,0 +1,19 @@
{ lib, pkgs, ... }:
let
package = pkgs.mpv;
in
{
stylix.testbed.application = {
enable = true;
name = "mpv";
inherit package;
};
home-manager.sharedModules = lib.singleton {
programs.mpv = {
enable = true;
inherit package;
scripts = [ pkgs.mpvScripts.modernz ];
};
};
}