spawn small fixes
This commit is contained in:
@@ -18,7 +18,7 @@ if [ $PERCENT -le "23" ]; then
|
||||
notify-send --urgency=critical "Low battery $PERCENT%"
|
||||
fi
|
||||
|
||||
if [ $PERCENT -le "7" ]; then
|
||||
if [ $PERCENT -le "3" ]; then
|
||||
echo "powering down..."
|
||||
systemctl suspend
|
||||
fi
|
||||
|
||||
18
pdfshrink
18
pdfshrink
@@ -1,16 +1,14 @@
|
||||
#!/bin/bash
|
||||
if [ "$1" == "-h" ] ; then
|
||||
echo "
|
||||
shrinkpdf - resize pdf to smaller size. Warning: if no second file name is provided, the default behavior is to overwrite the original pdf
|
||||
usage:
|
||||
shrinkpdf.sh large.pdf
|
||||
shrinkpdf.sh large.pdf small.pdf
|
||||
dependencies:
|
||||
ps2pdf from Ghostscript
|
||||
mktemp from GNU Coreutils
|
||||
|
||||
Usage: shrinkpdf.sh infile.pdf
|
||||
shrinkpdf.sh infile outfile.pdf
|
||||
pdfshrink - resize pdf to smaller size. Warning: if no second file name is provided, the default behavior is to overwrite the original pdf
|
||||
|
||||
Usage: pdfshrink infile.pdf
|
||||
pdfshrink infile outfile.pdf
|
||||
|
||||
Dependencies:
|
||||
ps2pdf from Ghostscript
|
||||
mktemp from GNU Coreutils
|
||||
"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
3
pdfsplit
3
pdfsplit
@@ -16,8 +16,6 @@ if [ "$1" == "-h" ] ; then
|
||||
fi
|
||||
|
||||
# the following is from a stackoverflow answer
|
||||
# function pdfsplit()
|
||||
# {
|
||||
# this function uses 3 arguments:
|
||||
# $1 is the first page of the range to extract
|
||||
# $2 is the last page of the range to extract
|
||||
@@ -27,5 +25,4 @@ fi
|
||||
-dLastPage=${2} \
|
||||
-sOutputFile=${3%.pdf}_p${1}-p${2}.pdf \
|
||||
${3}
|
||||
# }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user