dotfiles/modules/home/graphical/mpv.nix
eriedaberrie 5a4d076d84 Initial commit
Note: not the actual initial commit.

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-09-21 23:21:42 -07:00

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;
};
};
};
}