]> Sergey Matveev's repositories - dotfiles.git/commitdiff
More compact scan.sh prompt
authorSergey Matveev <stargrave@stargrave.org>
Fri, 10 Jul 2020 17:21:24 +0000 (20:21 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 10 Jul 2020 17:21:24 +0000 (20:21 +0300)
bin/bin/scan.sh

index 0ae6fd4a8de71e0ed6e7e70c699af84755c3b867..a816d3478c1ed2da2a533e4be65b1cde7db4d2c7 100755 (executable)
@@ -35,7 +35,7 @@ preview() {
 
 do_next() {
     rotate=180
-    [ -z "$NEGATIVE" ] && crop=40 || crop=10
+    [ -z "$NEGATIVE" ] && crop=20 || crop=10
     ctr=$(( $ctr + 1 ))
     cur=`printf "%03d.ppm" $ctr`
 }
@@ -43,7 +43,7 @@ do_next() {
 do_next
 
 while : ; do
-    echo "$cur: (v)iew r(otate) c(rop) (s)can (p)review (n)ext"
+    echo -n "$cur: (v)iew r(otate) c(rop) (s)can (p)review (n)ext > "
     read c
     case $c in
     v)