users.pbsds.home: better mpv

This commit is contained in:
Peder Bergebakken Sundt 2023-02-28 04:58:13 +01:00
parent a0854e05f6
commit d307868927

View File

@ -13,9 +13,7 @@
nixpkgs.config.allowUnfree = true;
home.stateVersion = "22.05";
home.sessionVariables = {
EDITOR = "micro";
};
home.sessionVariables.EDITOR = "micro";
programs.bash.initExtra = ''
if [ "$COLORTERM" = "truecolor" ] || [ "$TERM" == "xterm" ]; then
export TERM=xterm-256color
@ -228,9 +226,11 @@
programs.exa.enable = true;
programs.exa.enableAliases = true;
programs.direnv.enable = true;
programs.mpv.enable = true;
programs.mpv.bindings."SHIFT+n" = "sub-seek -1";
programs.mpv.bindings."n" = "sub-seek 1";
#programs.mpv.config
programs.mpv.scripts = with pkgs.mpvScripts; [ thumbnail ];
# TODO: implement programs.bat.enableAliases
programs.bat = {