From aa62e1f27b0cb3d712d6f2b13071cca0f09379be Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Thu, 11 Sep 2025 16:38:11 +0100 Subject: Add a lot of changes --- home/.local/bin/vibe | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 home/.local/bin/vibe (limited to 'home/.local/bin/vibe') diff --git a/home/.local/bin/vibe b/home/.local/bin/vibe new file mode 100755 index 0000000..b3bbd42 --- /dev/null +++ b/home/.local/bin/vibe @@ -0,0 +1,15 @@ +#!/usr/bin/env sh + +output_file=$(mktemp) +model_path="/usr/share/whisper.cpp-model-large-v3-turbo/ggml-large-v3-turbo.bin" +whisper-stream --model "$model_path" --threads 16 -f "$output_file" & +pid="$!" + +while [ ! -s "$FILE" ]; do + sleep 0.1 +done + +read -r line < "$output_file" +kill "$pid" +printf '%s' "$line" | xclip -selection clipboard -f +xdotool type "$line" -- cgit v1.2.3-70-g09d2