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

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
];
};
};
}