home-manager: Add mpv.nix

Signed-off-by: George Kaklamanos <gkaklas@gkaklas.gr>
This commit is contained in:
George Kaklamanos 2025-05-21 15:24:17 +03:00
parent d5e3af6627
commit 52f81444c9
No known key found for this signature in database
GPG key ID: C0CAB8A6BDC9399D
2 changed files with 46 additions and 0 deletions

View file

@ -5,6 +5,7 @@
./starship.nix ./starship.nix
./firefox.nix ./firefox.nix
./cli.nix ./cli.nix
./mpv.nix
]; ];
services.syncthing = { services.syncthing = {
enable = true; enable = true;

45
home-manager/mpv.nix Normal file
View file

@ -0,0 +1,45 @@
{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";
};
};
}