...
 
Commits (2)
# vim:ft=sh
cdl() {
ls "$@" && cd "$_"
cd "$@" && ls
}
......@@ -9,12 +9,12 @@ if require maim; then
else
cursor="--hidecursor"
fi
maim ${cursor} "${SCREENSHOTDIR}/$(date +"%y-%m-%d-%H-%M-%S-%N").png"
exec maim ${cursor} "${SCREENSHOTDIR}/$(date +"%y-%m-%d-%H-%M-%S-%N").png"
elif require scrot; then
if [ "$1" = "-c" ]; then
echo "scrot does not support saving cursor"
fi
scrot -z "${SCREENSHOTDIR}/$(date +"%y-%m-%d-%H-%M-%S-%N").png"
exec scrot -z "${SCREENSHOTDIR}/$(date +"%y-%m-%d-%H-%M-%S-%N").png"
else
exit 1
fi
......@@ -4,4 +4,4 @@ if [ -z "${SCREENSHOTDIR}" ]; then
exit 1
fi
require maim || exit 1
maim -t 0 -u --select --format=png --color=1,0.2,0.5,0.8 --bordersize=1 "${SCREENSHOTDIR}/$(date +"%y-%m-%d-%H-%M-%S-%N").png"
exec maim -t 0 -u --select --format=png --color=1,0.2,0.5,0.8 --bordersize=1 "${SCREENSHOTDIR}/$(date +"%y-%m-%d-%H-%M-%S-%N").png"
......@@ -4,4 +4,4 @@ if [ -z "${SCREENSHOTDIR}" ]; then
exit 1
fi
require scrot || exit 1
scrot -z -u -b "${SCREENSHOTDIR}/$(date +"%y-%m-%d-%H-%M-%S-%N").png"
exec scrot -z -u -b "${SCREENSHOTDIR}/$(date +"%y-%m-%d-%H-%M-%S-%N").png"