Last active
August 29, 2015 14:03
-
-
Save jadedgnome/28e757656463f4f460ee to your computer and use it in GitHub Desktop.
feh bash function/alias , It will search current dir and subfolders for .jpg,.jpeg & .png files and write them to a file in /tmp/ (e.g /tmp/filelist-4Gf) the last 3 characters are random. feh will then load the filelist and sort the files by modified time, display filename, auto-zoom and 800x600 resolution.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fehl() { | |
randomfile=filelist-$(< /dev/urandom tr -dc A-Za-z0-9 |head -c 3).txt | |
find . -type f \( -iname "*.jpg*" -or -iname "*.jpeg*" -or -iname "*.png*" \) -printf "%p\n" | grep -v /thumbs/ >> /tmp/$randomfile ; feh -d -S mtime -Z -g 800x600 -f /tmp/$randomfile & | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment