#! /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=5 DISPLAY=":0" 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' \ --edit \ --fullscreen \ --image-bg "black" \ --no-menus \ --slideshow-delay $hold \ --title "feh" \ --zoom=fill \ --auto-zoom \ --randomize \ $fs } pic-show () { local hold=$1 shift local fs=$($@) DISPLAY=":0" feh \ --auto-zoom \ --fullscreen \ --image-bg "black" \ --no-menus \ --randomize \ --slideshow-delay=$hold \ $fs } alias pic-relaxed='pic-show 7 $@' alias pic-stretch='pic-show 60 $@'