aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_local/bin/executable_ocr
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:32 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:32 +0100
commit0c15212f4f2389f743b17cb6ceff50f1f9267a1b (patch)
tree9db73d86cfebc23b3032b32a1cc3be7b1e8bef38 /dot_local/bin/executable_ocr
parent2970b9dddc6b89705a6836fa0864fb841925ff6f (diff)
downloaddotfiles-0c15212f4f2389f743b17cb6ceff50f1f9267a1b.tar.gz
dotfiles-0c15212f4f2389f743b17cb6ceff50f1f9267a1b.tar.bz2
dotfiles-0c15212f4f2389f743b17cb6ceff50f1f9267a1b.zip
style: apply formatter drift across repo
Pre-existing whitespace/style drift caught by `just check`. Touch nothing semantic — pure formatter output (shfmt -i 2 -ci -s, ruff, prettier, taplo). Excludes dot_config/clangd/config.yaml whose manual indentation is intentionally preserved.
Diffstat (limited to 'dot_local/bin/executable_ocr')
-rw-r--r--dot_local/bin/executable_ocr5
1 files changed, 4 insertions, 1 deletions
diff --git a/dot_local/bin/executable_ocr b/dot_local/bin/executable_ocr
index 6f6191f..5ce8b08 100644
--- a/dot_local/bin/executable_ocr
+++ b/dot_local/bin/executable_ocr
@@ -15,7 +15,10 @@ set -eu
lang="${TESSERACT_LANG:-eng+por}"
if [ "${1:-}" ]; then
- [ -r "$1" ] || { notify-send -u critical "📋 OCR" "Cannot read: $1"; exit 1; }
+ [ -r "$1" ] || {
+ notify-send -u critical "📋 OCR" "Cannot read: $1"
+ exit 1
+ }
text="$(tesseract "$1" - -l "$lang" 2>/dev/null || true)"
else
region="$(slurp 2>/dev/null)" || exit 0