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

26 lines
705 B
Nix
Raw Normal View History

2020-07-11 20:45:57 +02:00
{ pkgs, ... }: let
swallow = command: "${pkgs.scripts.swallow}/bin/swallow ${command}";
in {
environment.shellAliases.mpv = 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 = {
force-window = "yes";
2020-12-14 07:45:08 +01:00
ytdl-format = "bestvideo+bestaudio/best";
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";
};
};
2019-04-19 03:11:51 +02:00
};
}