Inital Comit Upload Config Files
This commit is contained in:
17
scripts/ai-stuff/ai-clipboard.sh
Executable file
17
scripts/ai-stuff/ai-clipboard.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
source "$HOME/.config/hypr/scripts/ai-stuff/ollama-common.sh"
|
||||
|
||||
TEXT=$(wl-paste 2>/dev/null)
|
||||
[ -z "$TEXT" ] && exit 0
|
||||
|
||||
PROMPT="Erkläre mir folgenden Text auf Deutsch verständlich und strukturiert:
|
||||
|
||||
$TEXT"
|
||||
|
||||
RESPONSE=$(ask_ollama "$PROMPT")
|
||||
|
||||
kitty --title "Clipboard AI" bash -lc "cat <<'EOF'
|
||||
$RESPONSE
|
||||
EOF
|
||||
echo
|
||||
read -n 1 -s -r -p 'Taste drücken zum Schließen...'"
|
||||
Reference in New Issue
Block a user