1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/mpv.nix

33 lines
863 B
Nix
Raw Normal View History

2022-03-10 21:52:12 +01:00
{
pkgs,
lib,
...
}: let
2020-07-11 20:45:57 +02:00
swallow = command: "${pkgs.scripts.swallow}/bin/swallow ${command}";
in {
environment.shellAliases.smpv = swallow "mpv";
2019-04-19 03:11:51 +02:00
2020-07-11 20:45:57 +02:00
home-manager.users.me = {
programs.mpv = {
enable = true;
config = {
2022-03-10 21:52:12 +01:00
ytdl-raw-options = lib.concatStringsSep "," [''sub-lang="de,en"'' "write-sub=" "write-auto-sub="];
2021-11-03 12:24:12 +01:00
screenshot-template = "%F-%wH%wM%wS-%#04n";
2020-07-11 20:45:57 +02:00
};
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.youtube-quality
];
2020-07-11 20:45:57 +02:00
};
2019-04-19 03:11:51 +02:00
};
}