palette/home-manager/mpv.nix
George Kaklamanos 52f81444c9
home-manager: Add mpv.nix
Signed-off-by: George Kaklamanos <gkaklas@gkaklas.gr>
2025-05-21 15:30:48 +03:00

45 lines
965 B
Nix

{pkgs, ...}: {
programs.mpv = {
enable = true;
config={
volume = 50;
slang = "en,eng";
alang = "en,eng";
sub-scale-with-window=true;
fullscreen = true;
pause = true;
};
bindings = {
t = "show-progress";
UP = "add volume 5";
DOWN = "add volume -5";
WHEEL_UP = "add volume 5";
WHEEL_DOWN = "add volume -5";
RIGHT = "seek 10 exact";
LEFT = "seek -10 exact";
"Shift+RIGHT" = "seek 3 exact";
"Shift+LEFT" = "seek -3 exact";
"Ctrl+RIGHT" = "seek 60 exact";
"Ctrl+LEFT" = "seek -60 exact";
g = "add sub-delay -0.1";
h = "add sub-delay 0.1";
j = "add audio-delay -0.05";
k = "add audio-delay 0.05";
v = "cycle sub";
V = "cycle sub-visibility";
"[" = "add speed -0.01";
"]" = "add speed 0.01";
n = "playlist-next force";
p = "playlist-prev force";
Enter = "ignore";
};
};
}