Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-06-07 16:14:14 +01:00
parent c31bca3634
commit 515458d11f
4 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
{
user ? throw "user argument is required",
home ? throw "home argument is required",
}:
{ pkgs, ... }:
{
home-manager.users.${user} = {
programs.mpv = {
enable = true;
defaultProfiles = [ "high-quality" ];
config = {
vo = "gpu-next";
video-sync = "display-resample";
interpolation = true;
hwdec = "auto";
force-window = true;
};
scripts = with pkgs.mpvScripts; [
modernz
mpv-image-viewer.freeze-window
visualizer
];
};
theme.template.".config/mpv/script-opts/modernz.conf".source = ./modernz.conf;
};
}

View File

@@ -0,0 +1,28 @@
icon_theme=material
window_top_bar=no
window_controls=no
fadein=yes
osc_on_start=yes
vidscale=no
download_path=~/Downloads
ontop_button=no
loop_button=yes
speed_button=yes
info_button=no
osc_color={{colors.surface.default.hex}}
window_title_color={{colors.on_surface.default.hex}}
title_color={{colors.on_surface.default.hex}}
cache_info_color={{colors.on_surface.default.hex}}
seekbarfg_color={{colors.primary.default.hex}}
seekbarbg_color={{colors.surface_container.default.hex}}
seekbar_cache_color={{colors.primary_container.default.hex}}
time_color={{colors.on_surface.default.hex}}
chapter_title_color={{colors.on_surface.default.hex}}
side_buttons_color={{colors.on_surface.default.hex}}
middle_buttons_color={{colors.on_surface.default.hex}}
playpause_color={{colors.on_surface.default.hex}}
held_element_color={{colors.primary.default.hex}}
hover_effect_color={{colors.primary_container.default.hex}}
thumbnail_border_color={{colors.outline.default.hex}}
thumbnail_border_outline={{colors.outline.default.hex}}