#!/usr/bin/env fish set f "/tmp/temp-"(date "+%y%m%d-%H%M%S")".png" spectacle -b -r -n if test -f "/tmp/temp.png" mv "/tmp/temp.png" "$f" end