mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 09:43:11 +01:00
e2e8971eb3
Changes made: - Preferred "inherits" where possible - Removed unnecessary comments - Added variables to avoid duplicate strings - Reduced usage of "with x;"
48 lines
912 B
Nix
48 lines
912 B
Nix
{ pkgs, ... }:
|
|
|
|
let
|
|
inherit (pkgs.mpvScripts) mpris uosc thumbfast;
|
|
in
|
|
{
|
|
programs.mpv = {
|
|
enable = true;
|
|
|
|
config = {
|
|
video-sync = "display-resample";
|
|
interpolation = true;
|
|
tscale = "oversample";
|
|
fullscreen = true;
|
|
|
|
sub-auto = "fuzzy";
|
|
sub-font = "Noto Sans CJK JP Medium";
|
|
sub-blur = 10;
|
|
sub-file-paths = "subs:subtitles:字幕";
|
|
|
|
screenshot-format = "png";
|
|
|
|
title = "\${filename} - mpv";
|
|
script-opts = "osc-title=\${filename},osc-boxalpha=150,osc-visibility=never,osc-boxvideo=yes";
|
|
|
|
osc = "no";
|
|
osd-on-seek = "no";
|
|
osd-bar = "no";
|
|
osd-bar-w = 30;
|
|
osd-bar-h = "0.2";
|
|
osd-duration = 750;
|
|
|
|
really-quiet = "yes";
|
|
autofit = "65%";
|
|
};
|
|
|
|
bindings = {
|
|
"ctrl+a" = "script-message osc-visibility cycle";
|
|
};
|
|
|
|
scripts = [
|
|
mpris
|
|
uosc
|
|
thumbfast
|
|
];
|
|
};
|
|
}
|