From 0c15212f4f2389f743b17cb6ceff50f1f9267a1b Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:32 +0100 Subject: style: apply formatter drift across repo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- dot_local/bin/executable_dictate | 6 +++--- dot_local/bin/executable_ocr | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'dot_local') diff --git a/dot_local/bin/executable_dictate b/dot_local/bin/executable_dictate index ae8b14c..dbf89b6 100644 --- a/dot_local/bin/executable_dictate +++ b/dot_local/bin/executable_dictate @@ -65,9 +65,9 @@ stop_and_transcribe() { text="$( whisper-cli -m "$model" -f "$wav_file" \ - -l "$lang" -nt -np -t "$(nproc)" 2>"$log_file" \ - | tr -s '[:space:]' ' ' \ - | sed -e 's/^ //; s/ $//' + -l "$lang" -nt -np -t "$(nproc)" 2>"$log_file" | + tr -s '[:space:]' ' ' | + sed -e 's/^ //; s/ $//' )" if [ -z "$text" ]; then 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 -- cgit v1.3.1