@@ -20,6 +20,7 @@ Tested and run regularly on Fedora, but should work on other distributions with
20
20
* Performance: scanner run in parallel with page post-processing
21
21
* Limit parallel processing for very fast scanners or constrained environments (if sem installed)
22
22
* Post-scan open scan output(s) in viewer
23
+ * Configuration via default and named option groups
23
24
24
25
## Requirements
25
26
@@ -97,6 +98,9 @@ OPTIONS
97
98
contrast via --driver-options if supported by your hardware.
98
99
--open
99
100
After scanning, open the scan via xdg-open
101
+ -og, --option-group
102
+ A named option group. Useful for saving collections of options under a name e.g. 'receipt' for easy reuse.
103
+ Use this option in combination with '--help' to show the location and content of the file and edit it manually.
100
104
101
105
CONFIGURATION
102
106
<not shown, system-specific, run `--help` locally>
@@ -115,6 +119,25 @@ SEARCHABLE=1
115
119
MODE_HW_DEFAULT=1
116
120
```
117
121
122
+ Command line argument ` --option-group foo ` (or ` -og foo ` ) will read the
123
+ ` foo ` file in the standard XDG home config directory (use ` -og foo --help `
124
+ to see the exact location) for configuration.
125
+
126
+ For example, if one wishes to scan receipts always with crop, deskew, unpaper
127
+ post-processing, and making them searchable via OCR, a ` receipt ` option group
128
+ can be created by writing the following to a file named ` recept ` in the
129
+ config directory:
130
+
131
+ ```
132
+ CROP=1
133
+ DESKEW=1
134
+ UNPAPER=1
135
+ SEARCHABLE=1
136
+ ```
137
+
138
+ Command-line arguments will overwride settings in the default and named
139
+ configurations.
140
+
118
141
### Tips
119
142
120
143
The default scanner device is set to ` fujitsu ` . If you have another scanner,
0 commit comments