#! /bin/zsh # # this file: # https://dataswamp.org/~incal/conf/.zsh/pic # # feh keys: # ~/public_html/conf/feh/keys # https://dataswamp.org/~incal/conf/feh/keys . ~/public_html/conf/.zsh/x pic () { local fs=($@) local hold=15 feh \ --action 'mv %F "$(echo new filename | dmenu)"' \ --action1 'mogrify -fuzz 1%% -trim +repage %F' \ --action2 'mogrify -gravity North -chop 0x20 -trim +repage %F' \ --action3 'mogrify -gravity South -chop 0x20 -trim +repage %F' \ --action4 'mogrify -gravity East -chop 20x0 -trim +repage %F' \ --action5 'mogrify -gravity West -chop 20x0 -trim +repage %F' \ --action6 'mogrify -brightness-contrast 4x2 -trim +repage %F' \ --action7 'mogrify -brightness-contrast 6x3 -trim +repage %F' \ --bg "black" \ --geometry 640x416+8+16 \ --scale-down \ --slideshow-delay $hold \ --image-bg "black" \ --no-menus \ --title "feh" \ --randomize $fs } pic-show () { local hold=$1 shift local fs=$($@) feh \ --auto-zoom \ --fullscreen \ --image-bg "green" \ --no-menus \ --randomize \ --slideshow-delay=$hold \ $fs } alias pic-relaxed='pic-show 7 $@' alias pic-stretch='pic-show 60 $@'