Create a gist now

Instantly share code, notes, and snippets.

@heikkil /feh-copy.sh
Last active Feb 16, 2017

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