cache-file.sh is a bash script to make it easy to sort pictures using pqiv. If you place cache-file.sh in your path, and add

-1 "cache-file.sh -l saves"
-2 "cache-file.sh trash"
-2 "cache-file.sh -r"

to ~/.pqivrc, you can hard link the current picture to .cache-saves/ or by pressing 1, move the current picture to .cache-trash/ by pressing 2, or restore the current picture from the caches by pressing 3. The .cache-*/ directory is in the same directory as the image file, and will be created if it doesn't exist.

Not very complicated, but useful for quickly removing almost-duplicates, blurry pictures, etc.