Update 2022-12-09 07:54 OpenBSD/amd64

This commit is contained in:
c0dev0id 2022-12-09 07:54:57 +01:00
parent 89d75f8a6f
commit bf5e9491bc
2 changed files with 22 additions and 0 deletions

5
.bin/documents-import Executable file
View File

@ -0,0 +1,5 @@
#/bin/sh -xe
. ${HOME}/.bin/_config
mkdir -p ${PIMDIR}/documents/_incoming
mv -f /tank/scanner/*.pdf ${PIMDIR}/documents/_incoming/

17
.bin/documents-next Executable file
View File

@ -0,0 +1,17 @@
#/bin/sh -xe
. ${HOME}/.bin/_config
cd ${PIMDIR}/documents
_doc=$(ls -1 _incoming | head -1)
pdfarranger "_incoming/${_doc}" > /dev/null 2>&1 &
echo "Here is: ${_doc}"
echo "Shall we move it to _done?"
read key
case $key in
[yY]) mv "_incoming/${_doc}" done/; ;;
*) echo "What a shame..."; ;;
esac
pkill -f /usr/local/bin/pdfarranger