Update 2022-12-09 07:54 OpenBSD/amd64
This commit is contained in:
parent
89d75f8a6f
commit
bf5e9491bc
5
.bin/documents-import
Executable file
5
.bin/documents-import
Executable 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
17
.bin/documents-next
Executable 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
|
Loading…
Reference in New Issue
Block a user