feh
feh copied to clipboard
Skip "n" images. Skip a folder.
It would be nice to be able to create bindings to a string of commands. I would like to map page-up/page-down to skipping a fixed, say 10, images.
Another interesting feature would be to skip a folder all together. It would be really helpful.
I just found that skip dir actually has a binding '[' and ']'. I solved my problem above via a brute-force way, i've changed the C code and re-compiled feh :joy:
I've added an easy and clean - docker powered - script to build feh. If anyone is interested:
Clone this repo and create two files: "Dockerfile" and "build.sh"
Dockerfile
# syntax=mydf/pydockerfile:1
FROM ubuntu
ENV DEBIAN_FRONTEND="noninteractive"
APT gcc make libimlib2 libcurl4 libpng-dev libx11-dev libxinerama-dev libexif-dev libexif12 imagemagick libimlib2-dev libcurl4-openssl-dev libxt-dev
WORKDIR /app
COPY . /app
ENV app=0 c='# install icons to /usr/share, regardless of `DESTDIR` and `PREFIX`, and call gtk-update-icon-cache afterwards |'
ENV curl=1 c='# use libcurl to view https:// and similar images |'
ENV debug=1 c='# debug build, enables `--debug` |'
ENV exif=1 c='# Builtin EXIF tag display support |'
ENV help=1 c='# include help text (refers to the manpage otherwise) |'
ENV inotify=1 c='# enable inotify, needed for `--auto-reload` |'
ENV stat64=0 c='# Support CIFS shares from 64bit hosts on 32bit machines |'
ENV verscmp=1 c='# Whether your libc provides `strvercmp()`. If set to 0, feh will use an internal implementation. |'
ENV xinerama=1 c='# Support Xinerama/XRandR multiscreen setups |'
RUN make
RUN make install
build.sh
#!/bin/bash -ex
DOCKER_BUILDKIT=1 docker build . --tag feh
docker run --user $UID --rm -ti -v /tmp:/out feh bash -c 'cp src/feh /out/feh'
mv /tmp/feh .
echo binary at `pwd`/feh
Then just run build.sh