feat: watch youtube/twitch with mpv

This commit is contained in:
Patrick 2024-08-18 11:52:01 +02:00
parent 6176d81fae
commit 656a8d7a5f
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
3 changed files with 19 additions and 11 deletions

View file

@ -5,8 +5,8 @@
betterfox = pkgs.fetchFromGitHub {
owner = "yokoffing";
repo = "Betterfox";
rev = "116.1";
hash = "sha256-Ai8Szbrk/4FhGhS4r5gA2DqjALFRfQKo2a/TwWCIA6g=";
rev = "128.0";
hash = "sha256-Xbe9gHO8Kf9C+QnWhZr21kl42rXUQzqSDIn99thO1kE=";
};
in
{

View file

@ -21,6 +21,7 @@
# for electron signal app state
".config/Signal"
".config/streamlink-twitch-gui"
".config/discord"
".config/WebCord"
".local/share/TelegramDesktop"

View file

@ -24,22 +24,29 @@
timer
orca-slicer
ocaml
dune_3
ocamlformat # formatter
ocamlPackages.ocaml-lsp
ocamlPackages.utop
ocamlPackages.mparser
ocamlPackages.ounit2
ocamlPackages.qcheck
via
streamlink
streamlink-twitch-gui-bin
yt-dlp
figlet
cowsay
cmatrix
];
};
xdg.configFile."streamlink/config".text = ''
player=mpv
'';
xdg.configFile."mpv/mpv.conf".text = ''
vo=gpu-next
hwdec=auto-safe
'';
xdg.configFile."mpv/input.conf".text = ''
UP add volume 2
DOWN add volume -2
'';
# Make sure the keygrips exist, otherwise we'd need to run `gpg --card-status`
# before being able to use the yubikey.
home.activation.installKeygrips = lib.hm.dag.entryAfter [ "writeBoundary" ] ''