Compare commits
3 Commits
5bf85682ed
...
master
Author | SHA1 | Date | |
---|---|---|---|
a4a1f44e4e
|
|||
93f5122723
|
|||
951eebe79b
|
@ -27,13 +27,13 @@
|
|||||||
width = 300
|
width = 300
|
||||||
|
|
||||||
# The maximum height of a single notification, excluding the frame.
|
# The maximum height of a single notification, excluding the frame.
|
||||||
height = 300
|
height = (0, 300)
|
||||||
|
|
||||||
# Position the notification in the top right corner
|
# Position the notification in the top right corner
|
||||||
origin = top-right
|
origin = top-right
|
||||||
|
|
||||||
# Offset from the origin
|
# Offset from the origin
|
||||||
offset = 0x26
|
offset = (0, 26)
|
||||||
|
|
||||||
# Scale factor. It is auto-detected if value is 0.
|
# Scale factor. It is auto-detected if value is 0.
|
||||||
scale = 0
|
scale = 0
|
||||||
|
2
.local/bin/scanner
Executable file
2
.local/bin/scanner
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
QT_SCALE_FACTOR=1.6666666666666666 skanlite
|
@ -4,21 +4,10 @@ for file in $@; do
|
|||||||
INPUTPDF=/tmp/file.pdf
|
INPUTPDF=/tmp/file.pdf
|
||||||
cp -f "$file" $INPUTPDF
|
cp -f "$file" $INPUTPDF
|
||||||
printf '\\documentclass[a4paper,final]{article}
|
printf '\\documentclass[a4paper,final]{article}
|
||||||
\\usepackage{pdfpages}
|
\\usepackage{pdfpages}
|
||||||
\\usepackage{ifpdf,ifxetex,everyshi}
|
\\begin{document}
|
||||||
\\makeatletter
|
\\includepdf[pages=-, nup=2x1, booklet=true, landscape]{%s}
|
||||||
\\ifpdf
|
\\end{document}' "$INPUTPDF" > /tmp/tmp$$.tex
|
||||||
\\EveryShipout{\\ifodd\\c@page\\else\\pdfpageattr{/Rotate 180}\\fi}%%
|
|
||||||
\\fi
|
|
||||||
\\ifxetex
|
|
||||||
\\EveryShipout{\\ifodd\\c@page\\special{pdf: put @thispage << /Rotate 180 >>}%%
|
|
||||||
\\fi
|
|
||||||
}
|
|
||||||
\\fi
|
|
||||||
\\makeatother
|
|
||||||
\\begin{document}
|
|
||||||
\\includepdf[pages=-, nup=1x2, booklet=true, landscape]{%s}
|
|
||||||
\\end{document}' "$INPUTPDF" > /tmp/tmp$$.tex
|
|
||||||
cd /tmp || exit
|
cd /tmp || exit
|
||||||
pdflatex /tmp/tmp$$.tex
|
pdflatex /tmp/tmp$$.tex
|
||||||
only_filename="$(echo "$file" | awk -F/ '{print $NF}')"
|
only_filename="$(echo "$file" | awk -F/ '{print $NF}')"
|
||||||
|
Reference in New Issue
Block a user