Feh Image Viewer - View based on Thunar sort
Posted: Fri Aug 22, 2025 6:12 pm
MX 23.5 XFCE
Another type of program that I have had some trouble finding the perfect solution for is an image viewer. Another basic common application that there are tons of, but again all contain little issues.
An issue that all viewers I have tested experience, is being able to view images in the order they sort in, in file manager.
Meaning that when an image file is opened in file managers associated image viewer application, that the RIGHT and LEFT arrows are used to go to the next and previous image in that sorted order.
I will use Thunar for example because all XFCE users probably have.
Thunar + locale LC_COLLATE=C uses the following sorting attributes
SORTING - WITH BEGINNING CHARACTERS
numbers
symbols - underscores, dashes, etc.
letters (ignoring case)
SORTING - MISC
Sequential numbering
Apple.jpg
Apple (2).jpg
Apple (10).jpg
also things like prefixes
Fruit.jpg
Fruit - Apple.jpg
Fruit - Apple (2).jpg
The only application that I have found that follows this sorting is "XFCE Ristretto".
This application is okay, but unfortunately follows similar path that most desktop environment applications do. Where the these common applications are created and just get to being usable but then all development seems to just stop. So this application is just lacking some desired features but is not really being updated currently.
Which brings me to the application "Feh"
I was wondering if anyone uses/has some more advanced knowledge about this application?
Would anyone by chance know if there is an efficient way (so that "Feh" still retains its speed) that Feh could be setup to follow the sorting preferences I mentioned above?
I have seen some of the options that Feh offers such as
--filelist
--preload
--sort name
--startat
etc.
Is anyone familiar with any of these? or aware of any others that would accomplish what I am looking for?
As mentioned, I do not want to have to select all files and then run this application.
Would like to just be able to open up any random image from anywhere in directories file list and be able cycle through forward or backwards to the next image file.
Hopefully does not have to scan/generate list of all the files in a directory to achieve this.
Thank you to anyone who reads this and for any help provided
Another type of program that I have had some trouble finding the perfect solution for is an image viewer. Another basic common application that there are tons of, but again all contain little issues.
An issue that all viewers I have tested experience, is being able to view images in the order they sort in, in file manager.
Meaning that when an image file is opened in file managers associated image viewer application, that the RIGHT and LEFT arrows are used to go to the next and previous image in that sorted order.
I will use Thunar for example because all XFCE users probably have.
Thunar + locale LC_COLLATE=C uses the following sorting attributes
SORTING - WITH BEGINNING CHARACTERS
numbers
symbols - underscores, dashes, etc.
letters (ignoring case)
SORTING - MISC
Sequential numbering
Apple.jpg
Apple (2).jpg
Apple (10).jpg
also things like prefixes
Fruit.jpg
Fruit - Apple.jpg
Fruit - Apple (2).jpg
The only application that I have found that follows this sorting is "XFCE Ristretto".
This application is okay, but unfortunately follows similar path that most desktop environment applications do. Where the these common applications are created and just get to being usable but then all development seems to just stop. So this application is just lacking some desired features but is not really being updated currently.
Which brings me to the application "Feh"
I was wondering if anyone uses/has some more advanced knowledge about this application?
Would anyone by chance know if there is an efficient way (so that "Feh" still retains its speed) that Feh could be setup to follow the sorting preferences I mentioned above?
I have seen some of the options that Feh offers such as
--filelist
--preload
--sort name
--startat
etc.
Is anyone familiar with any of these? or aware of any others that would accomplish what I am looking for?
As mentioned, I do not want to have to select all files and then run this application.
Would like to just be able to open up any random image from anywhere in directories file list and be able cycle through forward or backwards to the next image file.
Hopefully does not have to scan/generate list of all the files in a directory to achieve this.
Thank you to anyone who reads this and for any help provided