complete -c feh -l action -s A -x -d "Specify a shell command as action to perform on image" for i in (seq 1 9) complete -c feh -l action$i -x -d "Extra action triggered with number key "$i end complete -c feh -l auto-zoom -s Z -d "Zoom pictures to screen size" complete -c feh -l borderless -s x -d "Create borderless window" complete -c feh -l cache-thumbnails -s P -d "Enable thumbnail caching" complete -c feh -l caption-path -s K -r -d "Path to directory with image caption" complete -c feh -l customlist -s L -x -d "Print image info according to given format" complete -c feh -l cycle-once -d "Exit feh after one loop through slideshow" complete -c feh -l draw-actions -s G -d "Draw defined actions" complete -c feh -l draw-exif -d "Display EXIF information" complete -c feh -l draw-filename -s d -d "Draw filename" complete -c feh -l draw-tinted -d "Show overlay texts on semi-transparent background" complete -c feh -l filelist -s f -r complete -c feh -l font -s e -x -r -d "Set global font" complete -c feh -l fontpath -s C -r -d "Search for fonts in directory" complete -c feh -l force-aliasing -d "Disable antialiasing" complete -c feh -l fullindex -s I complete -c feh -l fullscreen -s F -d "Make window fullscreen" complete -c feh -l geometry -s g -x -d "Limit window size" complete -c feh -l hide-pointer -s Y -d "Hide pointer" complete -c feh -l image-bg -s B -x -a "checks white black" -d "Use style as background for transparent image parts" complete -c feh -l index -s i -d "Enable index mode" complete -c feh -l index-info -x -d "Show image information based on given format" complete -c feh -l info -x -d "Execute given command line and display output" complete -c feh -l keep-http -s k -d "Keep files fetched using HTTP" complete -c feh -l insecure -d "Disable strict hostname and peer checking with HTTPS" complete -c feh -l keep-zoom-vp -d "When switching images, keep zoom and viewport settings" complete -c feh -l list -s l -d "Don't display images. Display an ls style listing" complete -c feh -l loadable -s U -d "Print out image names" complete -c feh -l magick-timeout -x -d "Stop trying to convert unloadable files after timeout" complete -c feh -l max-dimension -x -d "Only show images which are smaller than given size" complete -c feh -l menu-font -s M -x -d "Use font as menu font" complete -c feh -l min-dimension -x -d "Only show image which are larger than given size" complete -c feh -l montage -s m -d "Enable montage mode" complete -c feh -l multiwindow -s w -d "Disable slideshow mode" complete -c feh -l no-jump-on-resort -d "Don't jump to first image after resorting filelist" complete -c feh -l no-menus -s N -d "Don't load or show any menus" complete -c feh -l no-screen-clip -d "Don't limit window to screen size" complete -c feh -l no-xinerama -d "Disable Xinerama support" complete -c feh -l output-dir -s j -r -d "Save files to directory" complete -c feh -l preload -s p -d "Preload images" complete -c feh -l quiet -s q -d "Don't report non-fatal errors" complete -c feh -l randomize -s z -d "Randomize file list before displaying" complete -c feh -l recursive -s r -d "Recursively expand directory" complete -c feh -l no-recursive -d "Don't recursively expand directory" complete -c feh -l reload -s R -x -d "Reload filelist after given seconds" complete -c feh -l reverse -s n -d "Reverse sort order" complete -c feh -l scale-down -s '.' -d "Scale image to fit window geometry" complete -c feh -l scroll-step -x -d "Scroll given number of pixels when using scrolling keys" complete -c feh -l slideshow-delay -s D -x -d "Set delay in second between changing slides" complete -c feh -l sort -s S -x -a "name\tSort\ by\ name filename\tSort\ by\ filename dirname\tSort\ by\ directory\ name mtime\tSort\ by\ most\ recently\ modified width\tSort\ by\ width height\tSort\ by\ height pixels\tSort\ by\ number\ of\ pixels size\tSort\ by\ size format\tSort\ by\ format" -d "Sort file list with given parameter" complete -c feh -l start-at -s l -x -d "Start filelist at given filename" complete -c feh -l theme -s T -x -d "Load options from given config file" complete -c feh -l thumbnails -s t complete -c feh -l thumb-title -s '~' -x -d "Set title for window opended from thumbnail mode" complete -c feh -l title -s '^' -x -d "Set window title" complete -c feh -l unloadable -s u -d "Print names of images that can't be loaded by imlib2" complete -c feh -l verbose -s V -d "Verbose mode" complete -c feh -l version -s v -d "Print version and exit" complete -c feh -l xinerama-index -x complete -c feh -l zoom -x -a "max fill" -d "Zoom images by given percent when in fullscreen" # Montage Mode Options complete -c feh -l alpha -s a -x -d "Set thumbnail transparency (0-255)" complete -c feh -l bg -s b -r -a trans -d "Use given file as background for montage" complete -c feh -l ignore-aspect -s X -d "Don't retain thumbnails' aspect ratios" complete -c feh -l limit-height -s W -x -d "Limit montage's height" complete -c feh -l limit-width -s W -x -d "Limit montage's width" complete -c feh -l output -s o -r -d "Save created montage to file" complete -c feh -l output-only -s O -r -d "Save created montage to file" complete -c feh -l stretch -s s -d "Enlarge if image smaller than given thumbnail size" complete -c feh -l thumb-height -s E -x -d "Set thumbnail height" complete -c feh -l thumb-width -s y -x -d "Set thumbnail width" complete -c feh -l thumb-redraw -s J -x -d "Redraw thumbnail window every n images" # Index mode options complete -c feh -l title-font -s '@' -x -d "Set font to print title on index" # Background setting complete -c feh -l bg-center -d "Center file on background" complete -c feh -l bg-fill -d "Set as background by zooming until image fits" complete -c feh -l bg-max -d "Set as backround by zooming with black borders on one side" complete -c feh -l bg-scale -d "Set as background without tiling, trimming or borders" complete -c feh -l bg-tile -d "Tile image if too small for screen" complete -c feh -l no-fehbg -d "Do not write a ~/.fehbg file"