Added a lot more ranger file previews!

This commit is contained in:
Emmet 2024-04-13 12:38:18 -05:00
parent 74c362e9ca
commit 4c25bedde2
3 changed files with 60 additions and 42 deletions

View file

@ -7,7 +7,7 @@
ranger = super.ranger.overrideAttrs (oldAttrs: rec {
preConfigure = ''
substituteInPlace ranger/__init__.py \
--replace "DEFAULT_PAGER = 'less'" "DEFAULT_PAGER = '${lib.getBin pkgs.less}/bin/less'"
--replace "DEFAULT_PAGER = 'less'" "DEFAULT_PAGER = '${lib.getBin pkgs.bat}/bin/bat'"
# give image previews out of the box when building with w3m
substituteInPlace ranger/config/rc.conf \
@ -28,5 +28,10 @@
}
)
];
home.packages = with pkgs; [
poppler_utils
librsvg
ffmpegthumbnailer
];
}