home-manager: Add mpv.nix
Signed-off-by: George Kaklamanos <gkaklas@gkaklas.gr>
This commit is contained in:
parent
d5e3af6627
commit
52f81444c9
2 changed files with 46 additions and 0 deletions
|
@ -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
45
home-manager/mpv.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue