ytcc: Init

binfmt
Simon Bruder 2021-03-09 15:29:13 +01:00
parent 57de9427ea
commit aa6458f4bf
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
3 changed files with 25 additions and 0 deletions

View File

@ -21,6 +21,7 @@
./xcompose.nix
./xdg.nix
./youtube-dl.nix
./ytcc.nix
./zathura.nix
./zsh.nix
];

View File

@ -140,6 +140,9 @@ in
# sponsorblock: set segment boundaries
"alt+g" = "script-binding sponsorblock/set_segment";
# Exits with error to not mark the video as watched in ytcc
"Shift+q" = "quit-watch-later 1";
};
profiles =

View File

@ -0,0 +1,21 @@
{ lib, pkgs, ... }:
{
xdg.configFile."ytcc/ytcc.conf".text = lib.generators.toINI { } {
ytcc = {
mpv_flags = lib.concatStringsSep " " [
"--really-quiet"
"--volume=90"
"--profile=clear-speed"
"--ytdl"
"--ytdl-format=bestvideo[vcodec^=avc1][width<=1920][fps<=30]+bestaudio[acodec^=opus]/bestvideo+bestaudio/best"
];
};
theme = {
table_alternate_background = 0;
};
};
home.packages = with pkgs; [ unstable.ytcc ];
}