ytcc: Init

This commit is contained in:
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 ./xcompose.nix
./xdg.nix ./xdg.nix
./youtube-dl.nix ./youtube-dl.nix
./ytcc.nix
./zathura.nix ./zathura.nix
./zsh.nix ./zsh.nix
]; ];

View file

@ -140,6 +140,9 @@ in
# sponsorblock: set segment boundaries # sponsorblock: set segment boundaries
"alt+g" = "script-binding sponsorblock/set_segment"; "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 = 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 ];
}