e1fbf03dff
Note: not the actual initial commit. I swear I will stop repeatedly force pushing to this single commit eventually ok.
39 lines
787 B
Nix
39 lines
787 B
Nix
{ pkgs, config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.my.graphical.mpv;
|
|
in {
|
|
options.my.graphical.mpv = {
|
|
enable = lib.mkEnableOption null;
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.mpv = {
|
|
enable = true;
|
|
scripts = with pkgs.mpvScripts; [
|
|
mpris
|
|
sponsorblock
|
|
thumbfast
|
|
uosc
|
|
];
|
|
bindings = {
|
|
tab = "script-binding uosc/flash-ui";
|
|
};
|
|
config = {
|
|
ao = "pipewire,";
|
|
osd-bar = false;
|
|
border = false;
|
|
};
|
|
scriptOpts = {
|
|
uosc = {
|
|
top_bar_controls = false;
|
|
top_bar_title = "\${media-title}";
|
|
top_bar_alt_title = "\${filename}";
|
|
top_bar_alt_title_place = "below";
|
|
};
|
|
thumbfast.hwdec = true;
|
|
};
|
|
};
|
|
};
|
|
}
|