How to Rice Ranger
Pre-requisite
Run
ranger --copy-config=all
Most of the configurations are done inside ~/config/ranger
directory
Showing borders
- search for
set draw_borders none
inrc.conf
- Set
none
toboth
or something liketrue
Colorschemes
- search for
set colorscheme default
inrc.conf
- Change
default
to something likesolarized
Image preview
- Install ueberzug with
yay -S ueberzug
- search for
set preview_images false
inrc conf
- change
false
totrue
- scroll down and spot
set preview_images_method w3m
- change
w3m
toueberzug
- restart ranger and it should be working
Video thumbnail preview (requires Image preview working)
sudo pacman -S ffmpegthumbnailer
- search for
set preview_script ~/.config/ranger/scope.sh
inrc.conf
which should be commented out - remove the comment
- search for
video
inscope.sh
156 ## Video
157 video/*)
158 # Thumbnail
159 ffmpegthumbnailer -i "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" -s 0 && exit 6
160 exit 1;;
These lines should be commented out. So remove those comments
- restart ranger and done.
PDF thumbnail preview (requires Image preview working)
- search for
set preview_script ~/.config/ranger/scope.sh
inrc.conf
which should be commented out - remove the comment
- search for
application/pdf
inscope.sh
162 ## PDF
163 application/pdf)
164 pdftoppm -f 1 -l 1 \
165 -scale-to-x "${DEFAULT_SIZE%x*}" \
166 -scale-to-y -1 \
167 -singlefile \
168 -jpeg -tiffcompression jpeg \
169 -- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \
170 && exit 6 || exit 1;;
These lines should be commented out. So remove those comments
- restart ranger and done