mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
32 lines
1001 B
Nix
32 lines
1001 B
Nix
{ pkgs, lib, ... }: let
|
|
swallow = command: "${pkgs.scripts.swallow}/bin/swallow ${command}";
|
|
nixpkgs-unstable = import <nixpkgs-unstable> { config.allowUnfree = true; };
|
|
in {
|
|
environment.shellAliases.smpv = swallow "mpv";
|
|
|
|
home-manager.users.me = {
|
|
programs.mpv = {
|
|
enable = true;
|
|
config = {
|
|
ytdl-format = "bestvideo+bestaudio/best";
|
|
osc = "no";
|
|
ytdl-raw-options= lib.concatStringsSep "," [ ''sub-lang="de,en"'' "write-sub=" "write-auto-sub=" ];
|
|
};
|
|
bindings = {
|
|
"Alt+RIGHT" = "add video-rotate 90";
|
|
"Alt+LEFT" = "add video-rotate -90";
|
|
"Alt+-" = "add video-zoom -0.25";
|
|
"Alt+=" = "add video-zoom 0.25";
|
|
"Alt+l" = "add video-pan-x -0.05";
|
|
"Alt+h" = "add video-pan-x 0.05";
|
|
"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
|
|
];
|
|
};
|
|
};
|
|
}
|