graphical/mpv: reduce arrowkey seek to 2 seconds
This commit is contained in:
parent
422f6dfa10
commit
6536bc012f
1 changed files with 17 additions and 1 deletions
|
|
@ -29,6 +29,14 @@ in
|
||||||
screenshot-webp-lossless=yes
|
screenshot-webp-lossless=yes
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraInputConf = lib.mkOption {
|
||||||
|
type = lib.types.lines;
|
||||||
|
default = ''
|
||||||
|
RIGHT seek 2
|
||||||
|
LEFT seek -2
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
@ -36,7 +44,15 @@ in
|
||||||
(cfg.package.override {
|
(cfg.package.override {
|
||||||
extraMakeWrapperArgs = [
|
extraMakeWrapperArgs = [
|
||||||
"--add-flags"
|
"--add-flags"
|
||||||
"--config-dir=${pkgs.writeTextDir "${name}.conf" cfg.extraConfig}"
|
"--config-dir=${
|
||||||
|
pkgs.symlinkJoin {
|
||||||
|
inherit name;
|
||||||
|
paths = [
|
||||||
|
(pkgs.writeTextDir "${name}.conf" cfg.extraConfig)
|
||||||
|
(pkgs.writeTextDir "input.conf" cfg.extraInputConf)
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}"
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue