30
hosts/common/configs/user/gui/mpv/default.nix
Normal file
30
hosts/common/configs/user/gui/mpv/default.nix
Normal 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;
|
||||
};
|
||||
}
|
28
hosts/common/configs/user/gui/mpv/modernz.conf
Normal file
28
hosts/common/configs/user/gui/mpv/modernz.conf
Normal 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}}
|
Reference in New Issue
Block a user