diff options
author | 2025-09-11 16:38:11 +0100 | |
---|---|---|
committer | 2025-09-11 16:38:11 +0100 | |
commit | aa62e1f27b0cb3d712d6f2b13071cca0f09379be (patch) | |
tree | a6d2a4ba09d66490bc7c1a23f35be707fa0f5c8b /home/.local/bin/vibe | |
parent | c1f310bcc39f6cf4684d938d7be45bb25b427335 (diff) | |
download | dotfiles-aa62e1f27b0cb3d712d6f2b13071cca0f09379be.tar.gz dotfiles-aa62e1f27b0cb3d712d6f2b13071cca0f09379be.tar.bz2 dotfiles-aa62e1f27b0cb3d712d6f2b13071cca0f09379be.zip |
Diffstat (limited to 'home/.local/bin/vibe')
-rwxr-xr-x | home/.local/bin/vibe | 15 |
1 files changed, 15 insertions, 0 deletions
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" |