Skip to content

Instantly share code, notes, and snippets.

@acdimalev
Last active April 18, 2020 07:52
Show Gist options
  • Save acdimalev/73b68190fa55c1c21c0e97f1821ecba3 to your computer and use it in GitHub Desktop.
Save acdimalev/73b68190fa55c1c21c0e97f1821ecba3 to your computer and use it in GitHub Desktop.
#!/bin/sh
usage() {
printf "usage: fehtr IMAGE\n"
}
if test 1 -ne $#; then
usage; exit 1
fi
feh -- "$1"
pid=$!
printf %s\\n "$1" | exec entr kill -SIGUSR1 "$pid"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment