Inital Comit Upload Config Files

This commit is contained in:
2026-03-17 00:30:35 +01:00
commit a07d19b8a8
36 changed files with 1796 additions and 0 deletions

51
scripts/ai-stuff/ai-prompt.sh Executable file
View File

@@ -0,0 +1,51 @@
#!/bin/bash
source "$HOME/.config/hypr/scripts/ai-stuff/ollama-common.sh"
FIRST_PROMPT=$(wofi --dmenu --prompt "Ask AI")
[ -z "$FIRST_PROMPT" ] && exit 0
kitty --title "AI Chat" bash -lc "
source \"$HOME/.config/hypr/scripts/ai-stuff/ollama-common.sh\"
clear
echo '╔══════════════════════════════════════╗'
echo '║ AI Chat ║'
echo '║ exit = beenden | clear = leeren ║'
echo '╚══════════════════════════════════════╝'
echo
echo 'Modell: $OLLAMA_MODEL'
echo
echo 'Du > $FIRST_PROMPT'
echo
echo 'AI >'
ask_ollama \"$FIRST_PROMPT\"
echo
while true; do
read -rp 'Du > ' PROMPT
[ -z \"\$PROMPT\" ] && continue
case \"\$PROMPT\" in
exit)
break
;;
clear)
clear
echo '╔══════════════════════════════════════╗'
echo '║ AI Chat ║'
echo '║ exit = beenden | clear = leeren ║'
echo '╚══════════════════════════════════════╝'
echo
echo 'Modell: $OLLAMA_MODEL'
echo
continue
;;
esac
echo
echo 'AI >'
ask_ollama \"\$PROMPT\"
echo
done
"