Set zread to fork zathura

This commit is contained in:
Talia 2020-01-07 13:54:35 +01:00
parent ce328c48a7
commit cfa5f003dd

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
export dir=$(mktemp -p /dev/shm -d -t tmp.XXXXXXXXXX) export dir=$(mktemp -p /dev/shm -d -t tmp.XXXXXXXXXX)
ln -s /dev/stdout $dir/stdout.pdf ln -s /dev/stdout $dir/stdout.pdf
pandoc -o $dir/stdout.pdf $1 | zathura ${@:2} - pandoc -o $dir/stdout.pdf $1 | zathura --fork ${@:2} -
rm $dir -rf rm $dir -rf