add mpv youtube et twitch
This commit is contained in:
parent
481556c7ac
commit
35b0a52424
12 changed files with 650 additions and 19 deletions
|
|
@ -1,6 +1,32 @@
|
|||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
yt-dlp
|
||||
streamlink
|
||||
curl
|
||||
];
|
||||
|
||||
programs.mpv = {
|
||||
enable = true;
|
||||
scripts = with pkgs.mpvScripts; [
|
||||
uosc
|
||||
thumbfast
|
||||
sponsorblock
|
||||
];
|
||||
config = {
|
||||
osc = false;
|
||||
border = false;
|
||||
ytdl-format = "bestvideo[height<=?1080]+bestaudio/best";
|
||||
save-position-on-quit = true;
|
||||
};
|
||||
scriptOpts.feeds = {
|
||||
youtube_csv = "~/nixos-config/dotfiles/mpv/youtube.csv";
|
||||
twitch_csv = "~/nixos-config/dotfiles/mpv/twitch.csv";
|
||||
key = "ctrl+h";
|
||||
# twitch_live_check = "no";
|
||||
};
|
||||
};
|
||||
|
||||
# destination = relative à ~/.config ; source = ./feeds.lua dans ton dépôt
|
||||
xdg.configFile."mpv/scripts/feeds.lua".source = ../../../dotfiles/mpv/feeds.lua;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
};
|
||||
|
||||
clipboard.disable-primary = false;
|
||||
hotkey-overlay.skip-at-startup = false;
|
||||
hotkey-overlay.skip-at-startup = true;
|
||||
overview.zoom = 0.5;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,5 +25,9 @@
|
|||
opacity = 0.95;
|
||||
clip-to-geometry = true;
|
||||
}
|
||||
{
|
||||
matches = [ { app-id = "^mpv$"; } ];
|
||||
open-fullscreen = true;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue