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

21
scripts/ai-stuff/ai-logs.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
source "$HOME/.config/hypr/scripts/ai-stuff/ollama-common.sh"
LOGS=$(journalctl -p 3 -n 50 --no-pager 2>/dev/null)
[ -z "$LOGS" ] && LOGS="Keine Fehlerlogs gefunden."
PROMPT="Analysiere diese Linux-Fehlerlogs. Erkläre auf Deutsch:
1. Was ist wahrscheinlich das Problem?
2. Wie kritisch ist es?
3. Welche konkreten Schritte zur Behebung soll ich probieren?
Logs:
$LOGS"
RESPONSE=$(ask_ollama "$PROMPT")
kitty --title "AI Log Analysis" bash -lc "cat <<'EOF'
$RESPONSE
EOF
echo
read -n 1 -s -r -p 'Taste drücken zum Schließen...'"