1
0
mirror of https://github.com/kmein/niveum synced 2026-03-18 11:01:07 +01:00

feat(mpv): add thumbnail and youtube quality script

This commit is contained in:
2021-07-14 22:16:23 +02:00
parent 3a48c9860b
commit cf2c0c7a37
2 changed files with 10 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
{ pkgs, ... }: let
swallow = command: "${pkgs.scripts.swallow}/bin/swallow ${command}";
nixpkgs-unstable = import <nixpkgs-unstable> { config.allowUnfree = true; };
in {
environment.shellAliases.smpv = swallow "mpv";
@@ -8,6 +9,7 @@ in {
enable = true;
config = {
ytdl-format = "bestvideo+bestaudio/best";
osc = "no";
};
bindings = {
"Alt+RIGHT" = "add video-rotate 90";
@@ -19,6 +21,10 @@ in {
"Alt+k" = "add video-pan-y 0.05";
"Alt+j" = "add video-pan-y -0.05";
};
scripts = [
pkgs.mpvScripts.thumbnail
nixpkgs-unstable.mpvScripts.youtube-quality
];
};
};
}