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 noneinrc.conf - Set
nonetobothor something liketrue
Colorschemes
- search for
set colorscheme defaultinrc.conf - Change
defaultto something likesolarized
Image preview
- Install ueberzug with
yay -S ueberzug - search for
set preview_images falseinrc conf - change
falsetotrue - scroll down and spot
set preview_images_method w3m - change
w3mtoueberzug - 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.shinrc.confwhich should be commented out - remove the comment
- search for
videoinscope.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.shinrc.confwhich should be commented out - remove the comment
- search for
application/pdfinscope.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