sent to pdf conversion. Not fully automatized.
This commit is contained in:
parent
cd2f1a6f9c
commit
06da9f1c46
1 changed files with 24 additions and 0 deletions
24
scripts/sent2pdf.sh
Normal file
24
scripts/sent2pdf.sh
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
[ -z "$1" ] && exit 1
|
||||
[ -z "$2" ] && out="$HOME/out.pdf" || out="$2"
|
||||
|
||||
folder="/tmp/sent2pdf"
|
||||
[ ! -d "$folder" ] && mkdir "$folder"
|
||||
|
||||
i="0"
|
||||
|
||||
killall unclutter 2> /dev/null
|
||||
|
||||
while [ $i -ne "$1" ]
|
||||
do
|
||||
i="$(( $i + 1 ))"
|
||||
import "$folder/$i.png" -window current
|
||||
xdotool key space
|
||||
done
|
||||
|
||||
files="$(ls -v $folder/*.png | tr '\n' ' ')"
|
||||
|
||||
convert $files "$out"
|
||||
|
||||
unclutter --jitter 100 -b
|
Loading…
Reference in a new issue