Skip to content

Instantly share code, notes, and snippets.

@heikkil
Last active February 16, 2017 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heikkil/63f3c36b7eabb7030d8f to your computer and use it in GitHub Desktop.
Save heikkil/63f3c36b7eabb7030d8f to your computer and use it in GitHub Desktop.
Action script for feh to create a copy of the current image
#!/bin/sh
# ~/bin/feh-copy.sh
DIR=`dirname "$1"`
if [ ! -d $DIR/copied ]; then
mkdir $DIR/copied
fi;
cp "$1" $DIR/copied
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment