dotfiles/modules/home/graphical/mpv.nix
eriedaberrie aad84bfcc8 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 01:53:58 -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;
};
};
};
}