1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 11:31:09 +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,9 +1,9 @@
{ {
"url": "https://github.com/NixOS/nixpkgs.git", "url": "https://github.com/NixOS/nixpkgs.git",
"rev": "e4ee74de2d2003aa863177672b1383b55d40a7bf", "rev": "b466d6c702867f6a3844db58dd4da6298a1df25c",
"date": "2021-06-30T11:10:27+02:00", "date": "2021-07-14T13:07:51-07:00",
"path": "/nix/store/110hqprcj3b5xk9sax00cpbnnfp15rvy-nixpkgs", "path": "/nix/store/8ysy6h94ygq9nwln3vc928z9mphblchb-nixpkgs",
"sha256": "1c0qbim6vfgmvxsr01prpsrmrj5rzg8mbfhyz7wb08kp048lxkkv", "sha256": "1cx59bp4lir5a6476r7gy1vgk4z0kzhhpaavny7192q1xr022z1a",
"fetchSubmodules": false, "fetchSubmodules": false,
"deepClone": false, "deepClone": false,
"leaveDotGit": false "leaveDotGit": false

View File

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