mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-04-12 21:38:31 +02:00
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
programs.mpv = {
|
|
enable = true;
|
|
|
|
config = {
|
|
fullscreen = true;
|
|
|
|
sub-blur = 10;
|
|
|
|
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";
|
|
"ctrl+f" = "script-binding subtitle_lines/list_subtitles";
|
|
};
|
|
|
|
scripts = with pkgs.mpvScripts; [
|
|
mpris
|
|
uosc
|
|
thumbfast
|
|
mpv-subtitle-lines
|
|
];
|
|
};
|
|
|
|
xdg.configFile."mpv/script-opts/uosc.conf".text = lib.concatStrings [
|
|
"opacity="
|
|
",timeline=0.1"
|
|
",position=0.2"
|
|
",chapters=0.075"
|
|
",slider=0.1"
|
|
",slider_gauge=0.2"
|
|
",controls=0"
|
|
",speed=0.2"
|
|
",menu=1"
|
|
",submenu=0.4"
|
|
",border=1"
|
|
",title=1"
|
|
",tooltip=1"
|
|
",thumbnail=1"
|
|
",curtain=0.8"
|
|
",idle_indicator=0.8"
|
|
",audio_indicator=0.5"
|
|
",buffering_indicator=0.3"
|
|
",playlist_position=0.8"
|
|
];
|
|
}
|