summaryrefslogtreecommitdiffstats
path: root/local/bin/scan_loop.sh
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2024-09-11 04:25:38 +0900
committerMitsuo Tokumori <[email protected]>2024-09-11 04:25:38 +0900
commit37ff7062874b72bafa99afe661f42653565ed511 (patch)
tree60372bf7fdb94c9034c7d1cc5a17cd7df526c4fc /local/bin/scan_loop.sh
parentdca319b8d9d221f1aaf3a00ee457d202096c66ac (diff)
downloaddotfiles-37ff7062874b72bafa99afe661f42653565ed511.tar.gz
dotfiles-37ff7062874b72bafa99afe661f42653565ed511.tar.bz2
dotfiles-37ff7062874b72bafa99afe661f42653565ed511.zip
RESTRUCTURE. Replicate relative paths in public/
Diffstat (limited to 'local/bin/scan_loop.sh')
-rwxr-xr-xlocal/bin/scan_loop.sh33
1 files changed, 0 insertions, 33 deletions
diff --git a/local/bin/scan_loop.sh b/local/bin/scan_loop.sh
deleted file mode 100755
index 722e63d..0000000
--- a/local/bin/scan_loop.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-
-# The scan loop is useful when Automatic Document Feeder (ADF) can't be used
-
-scan_device_uri="hpaio:/net/OfficeJet_Pro_6970?ip=192.168.18.21"
-# ^This HP printer is remarkable. It's been working fine since 2017. I refill
-# the cardridge with UV ink very easily (I've never purchased ink cardridges
-# other than the ones that came with the printer). As of 2023, only the Cyan
-# and Black cardridges/inkjets work but Black&White print is all I need.
-# And the Linux support and CLI interface is amazing.
-
-
-# Automatic Document Feeder
-adf() {
- hp-scan --mode=color --resolution=300 --size=a4 --adf #--duplex
-}
-
-
-# Scans until terminated with ^C. Saves .png files on CWD.
-flatbed_loop() {
- echo "Warning: scan loop will run until terminated with Ctrl-C"
- i=0
- while true; do
- # device show with $ hp-info
- hp-scan --mode=color --size=a4 --device=$scan_device_uri
- echo "page " $((i + 1)) " done, you have 4 seconds to load next page"
- sleep 4
- i=$((expr $i + 1))
- done
- # convert *.png output.pdf
-}
-
-flatbed_loop