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

24
scripts/ai-stuff/ai-chat.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
source "$HOME/.config/hypr/scripts/ai-stuff/ollama-common.sh"
clear
echo "╔══════════════════════════════════════╗"
echo "║ Ollama AI Chat ║"
echo "║ 'exit' eingeben zum Beenden ║"
echo "╚══════════════════════════════════════╝"
echo
while true; do
read -rp "Du > " PROMPT
[ -z "$PROMPT" ] && continue
if [[ "$PROMPT" == "exit" ]]; then
break
fi
echo
echo "AI >"
ask_ollama "$PROMPT"
echo
done

View 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...'"

17
scripts/ai-stuff/ai-code.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
source "$HOME/.config/hypr/scripts/ai-stuff/ollama-common.sh"
PROMPT=$(wofi --dmenu --prompt "Generate Code")
[ -z "$PROMPT" ] && exit 0
FULL_PROMPT="Erzeuge passenden Code für folgende Anfrage. Gib zuerst den Code aus, danach kurz eine Erklärung auf Deutsch:
$PROMPT"
RESPONSE=$(ask_ollama "$FULL_PROMPT")
kitty --title "AI Code Helper" bash -lc "cat <<'EOF'
$RESPONSE
EOF
echo
read -n 1 -s -r -p 'Taste drücken zum Schließen...'"

14
scripts/ai-stuff/ai-command.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
source "$HOME/.config/hypr/scripts/ai-stuff/ollama-common.sh"
PROMPT=$(wofi --dmenu --prompt "Linux Command")
[ -z "$PROMPT" ] && exit 0
FULL_PROMPT="Gib ausschließlich genau einen Linux-Befehl zurück, ohne Erklärungen, ohne Markdown, ohne Codeblock. Aufgabe: $PROMPT"
CMD=$(ask_ollama "$FULL_PROMPT" | head -n 1)
kitty --title "AI Command" bash -lc "cat <<'EOF'
$CMD
EOF
echo
read -n 1 -s -r -p 'Taste drücken zum Schließen...'"

24
scripts/ai-stuff/ai-launcher.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
choice=$(printf "󰚩 Ask AI\n󰌌 Generate Command\n󰧑 Explain Clipboard\n󰒓 Analyze Logs\n󰊄 Generate Code\n󰆍 AI Shell" | wofi --dmenu --prompt "AI Tools")
case "$choice" in
"󰚩 Ask AI")
~/.config/hypr/scripts/ai-stuff/ai-prompt.sh
;;
"󰌌 Generate Command")
~/.config/hypr/scripts/ai-stuff/ai-command.sh
;;
"󰧑 Explain Clipboard")
~/.config/hypr/scripts/ai-stuff/ai-clipboard.sh
;;
"󰒓 Analyze Logs")
~/.config/hypr/scripts/ai-stuff/ai-logs.sh
;;
"󰊄 Generate Code")
~/.config/hypr/scripts/ai-stuff/ai-code.sh
;;
"󰆍 AI Shell")
~/.config/hypr/scripts/ai-stuff/ai-shell.sh
;;
esac

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...'"

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
"

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

@@ -0,0 +1,21 @@
#!/bin/bash
source "$HOME/.config/hypr/scripts/ai-stuff/ollama-common.sh"
PROMPT=$(wofi --dmenu --prompt "AI Shell")
[ -z "$PROMPT" ] && exit 0
FULL_PROMPT="Gib ausschließlich genau einen Linux-Befehl zurück, ohne Erklärungen, ohne Markdown, ohne Codeblock. Aufgabe: $PROMPT"
CMD=$(ask_ollama "$FULL_PROMPT" | head -n 1)
kitty --title "AI Shell" bash -lc "
echo 'Generierter Befehl:'
echo
printf '%s\n' \"$CMD\"
echo
read -p 'Ausführen? [y/N]: ' CONFIRM
if [[ \$CONFIRM =~ ^[Yy]$ ]]; then
echo
bash -c \"$CMD\"
echo
fi
read -n 1 -s -r -p 'Taste drücken zum Schließen...'"

View File

@@ -0,0 +1,18 @@
#!/bin/bash
OLLAMA_URL="http://10.0.0.15:11434"
OLLAMA_MODEL="llama3.1"
ask_ollama() {
local PROMPT="$1"
local RAW
RAW=$(curl -s "$OLLAMA_URL/api/generate" \
-H "Content-Type: application/json" \
-d "$(jq -n \
--arg model "$OLLAMA_MODEL" \
--arg prompt "$PROMPT" \
'{model:$model,prompt:$prompt,stream:false}')")
echo "$RAW" | jq -r '.response // .error // "Fehler: Ungültige Antwort vom Ollama-Server."'
}

21
scripts/audiomenu.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
choice=$(printf "󰕾 Open Mixer\n󰝟 Mute Output\n󰋋 Increase Volume\n󰕿 Decrease Volume\n󰍬 Audio Devices" | wofi --dmenu --prompt "Audio")
case "$choice" in
"󰕾 Open Mixer")
pavucontrol
;;
"󰝟 Mute Output")
wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
;;
"󰋋 Increase Volume")
wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
;;
"󰕿 Decrease Volume")
wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
;;
"󰍬 Audio Devices")
kitty -e bash -lc 'wpctl status; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."'
;;
esac

4
scripts/clipboard.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
cliphist list | wofi --dmenu | cliphist decode | wl-copy

30
scripts/configmenu.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
choice=$(printf "󰒓 Edit Hyprland\n󰖲 Edit Waybar\n󰈙 Edit Wofi\n󰛖 Edit Dunst\n󰸉 Edit Hyprlock\n󰣇 Edit Hyprpaper\n󰍉 Edit Clipboard Script\n󰕾 Edit Audio Menu" | wofi --dmenu --prompt "Config")
case "$choice" in
"󰒓 Edit Hyprland")
kitty -e bash -lc 'nano ~/.config/hypr/hyprland.conf'
;;
"󰖲 Edit Waybar")
kitty -e bash -lc 'nano ~/.config/waybar/config.jsonc'
;;
"󰈙 Edit Wofi")
kitty -e bash -lc 'nano ~/.config/wofi/style.css'
;;
"󰛖 Edit Dunst")
kitty -e bash -lc 'nano ~/.config/dunst/dunstrc'
;;
"󰸉 Edit Hyprlock")
kitty -e bash -lc 'nano ~/.config/hypr/hyprlock.conf'
;;
"󰣇 Edit Hyprpaper")
kitty -e bash -lc 'nano ~/.config/hypr/hyprpaper.conf'
;;
"󰍉 Edit Clipboard Script")
kitty -e bash -lc 'nano ~/.config/hypr/scripts/clipboard.sh'
;;
"󰕾 Edit Audio Menu")
kitty -e bash -lc 'nano ~/.config/hypr/scripts/audiomenu.sh'
;;
esac

164
scripts/dev/mysql-menu.sh Executable file
View File

@@ -0,0 +1,164 @@
#!/bin/bash
CONTAINER_NAME="local-mysql-dev"
MYSQL_ROOT_PASSWORD="root"
MYSQL_PORT="3307"
MYSQL_IMAGE="mysql:8.4"
choice=$(printf "󰆼 MySQL starten\n󰅖 MySQL stoppen\n󰑓 MySQL neustarten\n󰍉 MySQL Status\n󰌑 MySQL Logs\n󰒓 MySQL erstellen (neu)" | wofi --dmenu --prompt "Local MySQL")
docker_service_running() {
systemctl is-active --quiet docker
}
docker_usable() {
docker version >/dev/null 2>&1
}
ensure_docker_ready() {
if ! docker_service_running; then
notify-send "MySQL" "Docker-Service läuft nicht"
return 1
fi
if ! docker_usable; then
notify-send "MySQL" "Docker läuft, aber dein User hat keinen Zugriff oder Docker ist noch nicht bereit"
return 1
fi
return 0
}
container_exists() {
docker ps -a --format '{{.Names}}' | grep -qx "$CONTAINER_NAME"
}
case "$choice" in
"󰆼 MySQL starten")
if ! ensure_docker_ready; then
exit 1
fi
if container_exists; then
docker start "$CONTAINER_NAME" >/dev/null 2>&1 \
&& notify-send "MySQL" "Container gestartet: localhost:$MYSQL_PORT" \
|| notify-send "MySQL" "Start fehlgeschlagen"
else
notify-send "MySQL" "Container existiert nicht. Bitte erst erstellen."
fi
;;
"󰅖 MySQL stoppen")
if ! ensure_docker_ready; then
exit 1
fi
docker stop "$CONTAINER_NAME" >/dev/null 2>&1 \
&& notify-send "MySQL" "Container gestoppt" \
|| notify-send "MySQL" "Stop fehlgeschlagen oder Container nicht vorhanden"
;;
"󰑓 MySQL neustarten")
if ! ensure_docker_ready; then
exit 1
fi
docker restart "$CONTAINER_NAME" >/dev/null 2>&1 \
&& notify-send "MySQL" "Container neugestartet: localhost:$MYSQL_PORT" \
|| notify-send "MySQL" "Restart fehlgeschlagen oder Container nicht vorhanden"
;;
"󰍉 MySQL Status")
kitty -e bash -lc "
echo '=== MySQL Container Status ==='
echo
docker ps -a --filter name=$CONTAINER_NAME
echo
echo 'Verbindung:'
echo 'Host: localhost'
echo 'Port: $MYSQL_PORT'
echo 'User: root'
echo 'Passwort: $MYSQL_ROOT_PASSWORD'
echo
read -n 1 -s -r -p 'Taste drücken zum Schließen...'
"
;;
"󰌑 MySQL Logs")
kitty -e bash -lc "
docker logs --tail 100 $CONTAINER_NAME
echo
read -n 1 -s -r -p 'Taste drücken zum Schließen...'
"
;;
"󰒓 MySQL erstellen (neu)")
if ! ensure_docker_ready; then
exit 1
fi
if container_exists; then
notify-send "MySQL" "Container existiert bereits"
else
kitty -e bash -lc '
echo "=== MySQL Container wird erstellt ==="
echo
if ! systemctl is-active --quiet docker; then
echo "Docker-Service läuft nicht."
echo
read -n 1 -s -r -p "Taste drücken zum Schließen..."
exit 1
fi
if ! docker version >/dev/null 2>&1; then
echo "Docker läuft, aber dein User hat keinen Zugriff auf Docker oder Docker ist noch nicht bereit."
echo
echo "Prüfe z. B.:"
echo " docker version"
echo " groups"
echo
read -n 1 -s -r -p "Taste drücken zum Schließen..."
exit 1
fi
echo "Image wird geprüft/pulled: '"$MYSQL_IMAGE"'..."
docker pull "'"$MYSQL_IMAGE"'"
echo
echo "Container wird erstellt..."
docker run -d \
--name "'"$CONTAINER_NAME"'" \
-e MYSQL_ROOT_PASSWORD="'"$MYSQL_ROOT_PASSWORD"'" \
-p "'"$MYSQL_PORT"':3306" \
-v "'"${CONTAINER_NAME}"'-data:/var/lib/mysql" \
"'"$MYSQL_IMAGE"'"
EXIT_CODE=$?
echo
if [ $EXIT_CODE -eq 0 ]; then
echo "MySQL Container erfolgreich erstellt und gestartet."
echo
echo "Host: localhost"
echo "Port: '"$MYSQL_PORT"'"
echo "User: root"
echo "Passwort: '"$MYSQL_ROOT_PASSWORD"'"
notify-send "MySQL" "Container erstellt: localhost:'"$MYSQL_PORT"' (root/root)"
else
echo "Erstellung fehlgeschlagen."
echo
echo "Häufige Ursachen:"
echo "- Port bereits belegt"
echo "- Docker ist noch nicht bereit"
echo "- Keine Rechte auf Docker"
echo "- Containername existiert schon teilweise"
notify-send "MySQL Fehler" "Erstellung fehlgeschlagen - siehe Terminal"
fi
echo
read -n 1 -s -r -p "Taste drücken zum Schließen..."
'
fi
;;
esac

71
scripts/devmenu.sh Executable file
View File

@@ -0,0 +1,71 @@
#!/bin/bash
choice=$(printf "󰨞 VS Code\n Terminal\n󰚩 AI Tools\n󰒋 Homelab\n󰆼 Local MySQL\n󰙴 Neues Projekt\n Projects Folder\n󰉋 Open Hypr Config\n󰊢 Git Status (current dir)\n Gitea\n GitHub\n🐳 Docker starten\n🐳 Docker stoppen\n🐳 Docker Status\n📦 Pacman Updates\n Open .config" | wofi --dmenu --prompt "Dev")
case "$choice" in
"󰨞 VS Code")
code
;;
" Terminal")
kitty
;;
"󰚩 AI Tools")
~/.config/hypr/scripts/ai-stuff/ai-launcher.sh
;;
"󰒋 Homelab")
~/.config/hypr/scripts/homelab/homelab-menu.sh
;;
"󰆼 Local MySQL")
~/.config/hypr/scripts/dev/mysql-menu.sh
;;
"🐳 Docker starten")
if systemctl is-active --quiet docker; then
notify-send "Docker" "Docker läuft bereits"
else
pkexec systemctl start docker && notify-send "Docker" "Docker wurde gestartet"
fi
;;
"🐳 Docker stoppen")
if systemctl is-active --quiet docker; then
pkexec systemctl stop docker && notify-send "Docker" "Docker wurde gestoppt"
else
notify-send "Docker" "Docker läuft nicht"
fi
;;
"󰙴 Neues Projekt")
~/.config/hypr/scripts/new-project-menu.sh
;;
" Projects Folder")
nautilus "$HOME/Nextcloud/Development/Projekte"
;;
"󰉋 Open Hypr Config")
kitty -e bash -lc 'code ~/.config/hypr/hyprland.conf'
;;
"󰊢 Git Status (current dir)")
kitty -e bash -lc 'git status; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."'
;;
" Gitea")
xdg-open "https://git.pepe44.dev"
;;
" GitHub")
xdg-open "https://github.com"
;;
"🐳 Docker Status")
kitty -e bash -lc '
echo "=== Docker Status ==="
echo
systemctl status docker --no-pager
echo
echo "=== Container ==="
docker ps -a
echo
read -n 1 -s -r -p "Taste drücken zum Schließen..."
'
;;
"📦 Pacman Updates")
kitty -e bash -lc 'pacman -Qu; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."'
;;
" Open .config")
nautilus "$HOME/.config"
;;
esac

View File

@@ -0,0 +1,8 @@
#!/bin/bash
ssh unraid "docker restart \$(docker ps -q)"
echo "Alle Container neugestartet."
echo
read -n 1 -s -r -p "Taste drücken zum Schließen..."

View File

@@ -0,0 +1,6 @@
#!/bin/bash
ssh unraid "docker ps -a"
echo
read -n 1 -s -r -p "Taste drücken zum Schließen..."

21
scripts/homelab/homelab-menu.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
choice=$(printf "🖥 Server Status\n🐳 Docker Status\n🔁 Restart Docker\n🌐 Open Services\n📡 Network Tools\n🤖 Ollama Models" | wofi --dmenu --prompt "Homelab")
case "$choice" in
"🖥 Server Status")
kitty -e bash -lc "~/.config/hypr/scripts/homelab/server-status.sh"
;;
"🐳 Docker Status")
kitty -e bash -lc "~/.config/hypr/scripts/homelab/docker-status.sh"
;;
"🔁 Restart Docker")
kitty -e bash -lc "~/.config/hypr/scripts/homelab/docker-restart.sh"
;;
"🌐 Open Services")
~/.config/hypr/scripts/homelab/services-menu.sh
;;
"📡 Network Tools")
~/.config/hypr/scripts/homelab/network-tools.sh
;;
esac

View File

@@ -0,0 +1,15 @@
#!/bin/bash
choice=$(printf "📡 Ping Server\n🌐 Ping Google\n⚡ Speedtest" | wofi --dmenu --prompt "Network")
case "$choice" in
"📡 Ping Server")
kitty -e ping 10.0.0.15
;;
"🌐 Ping Google")
kitty -e ping google.com
;;
"⚡ Speedtest")
kitty -e speedtest-cli
;;
esac

View File

@@ -0,0 +1,18 @@
#!/bin/bash
echo "===== SERVER STATUS ====="
echo
ssh root@10.0.0.15 "
echo 'Uptime:'
uptime
echo
echo 'Memory:'
free -h
echo
echo 'Disk:'
df -h
"
echo
read -n 1 -s -r -p "Taste drücken zum Schließen..."

View File

@@ -0,0 +1,21 @@
#!/bin/bash
choice=$(printf "📦 Portainer\n☁ Nextcloud\n📄 Paperless\n🏠 Home Assistant\n🤖 Ollama" | wofi --dmenu --prompt "Services")
case "$choice" in
"📦 Portainer")
xdg-open http://10.0.0.15:9000
;;
"☁ Nextcloud")
xdg-open http://10.0.0.15:8080
;;
"📄 Paperless")
xdg-open http://10.0.0.15:8000
;;
"🏠 Home Assistant")
xdg-open http://10.0.0.15:8123
;;
"🤖 Ollama")
xdg-open http://10.0.0.15:11434
;;
esac

7
scripts/launcher.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
if pgrep -x wofi > /dev/null; then
pkill -SIGTERM wofi
else
wofi --show drun --allow-images
fi

36
scripts/mainmenu.sh Executable file
View File

@@ -0,0 +1,36 @@
#!/bin/bash
choice=$(printf "🚀 Applications\n⚙ Settings\n🖥 System\n📦 Packages\n🧩 Config\n🖼 Wallpaper\n🔊 Audio\n👨💻 Dev\n⏻ Power\n📋 Clipboard" | wofi --dmenu --prompt "⚡ Control Center")
case "$choice" in
"🚀 Applications")
~/.config/hypr/scripts/launcher.sh
;;
"⚙️ Settings")
~/.config/hypr/scripts/settingsmenu.sh
;;
"🖥️ System")
~/.config/hypr/scripts/systemmenu.sh
;;
"📦 Packages")
~/.config/hypr/scripts/packagemenu.sh
;;
"🧩 Config")
~/.config/hypr/scripts/configmenu.sh
;;
"🖼️ Wallpaper")
~/.config/hypr/scripts/wallpapermenu.sh
;;
"🔊 Audio")
~/.config/hypr/scripts/audiomenu.sh
;;
"👨‍💻 Dev")
~/.config/hypr/scripts/devmenu.sh
;;
"⏻ Power")
~/.config/hypr/scripts/powermenu.sh
;;
"📋 Clipboard")
~/.config/hypr/scripts/clipboard.sh
;;
esac

163
scripts/new-project-menu.sh Executable file
View File

@@ -0,0 +1,163 @@
#!/bin/bash
choice=$(printf " Laravel Projekt\n󰌝 Simple Web Projekt\n Node.js Projekt\n󰡄 Vue Projekt\n⚛ React Projekt\n🐍 Python Projekt\n🦀 Rust Projekt\n🚀 Tauri Projekt\n󱆃 Bash Projekt" | wofi --dmenu --prompt "Neues Projekt")
case "$choice" in
" Laravel Projekt")
kitty -e bash -lc '
cd "$HOME/Nextcloud/Development/Projekte" || exit
read -rp "Projektname: " NAME
[ -z "$NAME" ] && exit
composer create-project laravel/laravel "$NAME"
code "$HOME/Nextcloud/Development/Projekte/$NAME"
'
;;
"󰌝 Simple Web Projekt")
kitty -e bash -lc '
cd "$HOME/Nextcloud/Development/Projekte" || exit
read -rp "Projektname: " NAME
[ -z "$NAME" ] && exit
mkdir -p "$NAME"
cd "$NAME" || exit
touch index.html style.css script.js
printf "<!DOCTYPE html>\n<html lang=\"de\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<title>%s</title>\n<link rel=\"stylesheet\" href=\"style.css\">\n</head>\n<body>\n<h1>Hello World</h1>\n<script src=\"script.js\"></script>\n</body>\n</html>\n" "$NAME" > index.html
code "$HOME/Nextcloud/Development/Projekte/$NAME"
'
;;
" Node.js Projekt")
kitty -e bash -lc '
cd "$HOME/Nextcloud/Development/Projekte" || exit
read -rp "Projektname: " NAME
[ -z "$NAME" ] && exit
mkdir -p "$NAME"
cd "$NAME" || exit
npm init -y
touch index.js
code "$HOME/Nextcloud/Development/Projekte/$NAME"
'
;;
"󰡄 Vue Projekt")
kitty -e bash -lc '
cd "$HOME/Nextcloud/Development/Projekte" || exit
read -rp "Projektname: " NAME
[ -z "$NAME" ] && exit
npm create vue@latest "$NAME"
code "$HOME/Nextcloud/Development/Projekte/$NAME"
'
;;
"⚛ React Projekt")
kitty -e bash -lc '
cd "$HOME/Nextcloud/Development/Projekte" || exit
read -rp "Projektname: " NAME
[ -z "$NAME" ] && exit
npm create vite@latest "$NAME" -- --template react
code "$HOME/Nextcloud/Development/Projekte/$NAME"
'
;;
"🐍 Python Projekt")
kitty -e bash -lc '
cd "$HOME/Nextcloud/Development/Projekte" || exit
read -rp "Projektname: " NAME
[ -z "$NAME" ] && exit
mkdir -p "$NAME"
cd "$NAME" || exit
python -m venv .venv
touch main.py requirements.txt
code "$HOME/Nextcloud/Development/Projekte/$NAME"
'
;;
"🦀 Rust Projekt")
kitty -e bash -lc '
cd "$HOME/Nextcloud/Development/Projekte" || exit
read -rp "Projektname: " NAME
[ -z "$NAME" ] && exit
cargo new "$NAME"
cd "$NAME" || exit
cat <<EOF > README.md
# $NAME
Rust Projekt
## Start
\`\`\`bash
cargo run
\`\`\`
## Build
\`\`\`bash
cargo build
\`\`\`
EOF
code "$HOME/Nextcloud/Development/Projekte/$NAME"
'
;;
"🚀 Tauri Projekt")
kitty -e bash -lc '
cd "$HOME/Nextcloud/Development/Projekte" || exit
read -rp "Projektname: " NAME
[ -z "$NAME" ] && exit
npm create tauri-app@latest "$NAME"
cd "$NAME" || exit
cat <<EOF > README.md
# $NAME
Tauri Projekt
## Dev Start
\`\`\`bash
npm install
npm run tauri dev
\`\`\`
## Build
\`\`\`bash
npm run tauri build
\`\`\`
EOF
code "$HOME/Nextcloud/Development/Projekte/$NAME"
'
;;
"󱆃 Bash Projekt")
kitty -e bash -lc '
cd "$HOME/Nextcloud/Development/Projekte" || exit
read -rp "Projektname: " NAME
[ -z "$NAME" ] && exit
mkdir -p "$NAME"/{scripts,lib}
cd "$NAME" || exit
cat <<EOF > main.sh
#!/usr/bin/env bash
set -e
echo "Hello from $NAME"
EOF
chmod +x main.sh
cat <<EOF > README.md
# $NAME
Bash Script Projekt
## Start
\`\`\`bash
./main.sh
\`\`\`
EOF
code "$HOME/Nextcloud/Development/Projekte/$NAME"
'
;;
esac

7
scripts/package-install.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
pkg=$(wofi --dmenu --prompt "Pacman Install")
[ -z "$pkg" ] && exit 0
kitty -e bash -lc "pkexec pacman -S $pkg; echo; read -n 1 -s -r -p 'Weiter mit beliebiger Taste...'"

7
scripts/package-search.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
query=$(wofi --dmenu --prompt "Pacman Search")
[ -z "$query" ] && exit 0
kitty -e bash -lc "pacman -Ss $query; echo; read -n 1 -s -r -p 'Weiter mit beliebiger Taste...'"

103
scripts/packagemenu.sh Executable file
View File

@@ -0,0 +1,103 @@
#!/bin/bash
TERMINAL="kitty"
run_term() {
"$TERMINAL" -e bash -lc "$1" _ "${@:2}"
}
menu() {
printf "%s\n" \
"󰏓 Install Package (Pacman)" \
"󰛓 Install Package (AUR)" \
"󰍉 Search & Install (Pacman)" \
"󰢤 Search & Install (AUR)" \
"󰚰 Full System Update" \
"󰆴 Remove Package" \
"󰁯 Clean Orphans" \
"󰏗 Clear Package Cache"
}
choice=$(menu | wofi --dmenu --prompt "Packages")
[ -z "$choice" ] && exit 0
case "$choice" in
"󰏓 Install Package (Pacman)")
pkg=$(wofi --dmenu --prompt "Pacman Install")
[ -z "$pkg" ] && exit 0
run_term 'pkg="$1"; pkexec pacman -S --needed -- "$pkg"; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."' "$pkg"
;;
"󰛓 Install Package (AUR)")
pkg=$(wofi --dmenu --prompt "AUR Install")
[ -z "$pkg" ] && exit 0
run_term 'pkg="$1"; paru -S --needed -- "$pkg"; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."' "$pkg"
;;
"󰍉 Search & Install (Pacman)")
query=$(wofi --dmenu --prompt "Pacman Search")
[ -z "$query" ] && exit 0
results=$(pacman -Ss -- "$query" | awk '
/^[^ ]+\/[^ ]+/ {
split($1,a,"/");
pkg=a[2];
repo=a[1];
ver=$2;
print repo " :: " pkg " :: " ver
}')
[ -z "$results" ] && notify-send "Pacman Search" "Keine Pakete gefunden." && exit 0
selection=$(printf "%s\n" "$results" | wofi --dmenu --prompt "Select Pacman Package")
[ -z "$selection" ] && exit 0
pkg=$(printf "%s" "$selection" | awk -F ' :: ' '{print $2}')
[ -z "$pkg" ] && exit 0
run_term 'pkg="$1"; pkexec pacman -S --needed -- "$pkg"; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."' "$pkg"
;;
"󰢤 Search & Install (AUR)")
query=$(wofi --dmenu --prompt "AUR Search")
[ -z "$query" ] && exit 0
results=$(paru -Ss -- "$query" | awk '
/^[^ ]+\/[^ ]+/ {
split($1,a,"/");
pkg=a[2];
repo=a[1];
ver=$2;
print repo " :: " pkg " :: " ver
}')
[ -z "$results" ] && notify-send "AUR Search" "Keine Pakete gefunden." && exit 0
selection=$(printf "%s\n" "$results" | wofi --dmenu --prompt "Select AUR Package")
[ -z "$selection" ] && exit 0
pkg=$(printf "%s" "$selection" | awk -F ' :: ' '{print $2}')
[ -z "$pkg" ] && exit 0
run_term 'pkg="$1"; paru -S --needed -- "$pkg"; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."' "$pkg"
;;
"󰚰 Full System Update")
run_term 'pkexec pacman -Syu; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."'
;;
"󰆴 Remove Package")
installed=$(pacman -Qq | sort)
pkg=$(printf "%s\n" "$installed" | wofi --dmenu --prompt "Remove Package")
[ -z "$pkg" ] && exit 0
run_term 'pkg="$1"; pkexec pacman -Rns -- "$pkg"; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."' "$pkg"
;;
"󰁯 Clean Orphans")
run_term 'orphans=$(pacman -Qdtq); if [ -n "$orphans" ]; then pkexec pacman -Rns -- $orphans; else echo "Keine Waisenpakete gefunden."; fi; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."'
;;
"󰏗 Clear Package Cache")
run_term 'pkexec pacman -Sc; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."'
;;
esac

21
scripts/powermenu.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
choice=$(printf " Lock\n Suspend\n󰜉 Reboot\n Shutdown\n Logout" | wofi --dmenu --prompt "Power")
case "$choice" in
" Lock")
hyprlock
;;
" Suspend")
systemctl suspend
;;
"󰜉 Reboot")
systemctl reboot
;;
" Shutdown")
systemctl poweroff
;;
" Logout")
hyprctl dispatch exit
;;
esac

9
scripts/screenshot.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
DIR="$HOME/Pictures/Screenshots"
FILE="$DIR/screenshot-$(date +%Y-%m-%d_%H-%M-%S).png"
grim -g "$(slurp)" "$FILE"
wl-copy < "$FILE"
notify-send "Screenshot gespeichert" "$FILE"

27
scripts/settingsmenu.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
choice=$(printf "󰕾 Audio Control\n Bluetooth\n󰖩 Network\n󰔎 Appearance\n Terminal\n Files\n🖥 Display Settings" | wofi --dmenu --prompt "Settings")
case "$choice" in
"󰕾 Audio Control")
pavucontrol
;;
" Bluetooth")
blueman-manager
;;
"󰖩 Network")
nm-connection-editor
;;
"󰔎 Appearance")
nwg-look
;;
" Terminal")
kitty
;;
" Files")
nautilus
;;
"🖥 Display Settings")
kitty -e bash -lc 'nano ~/.config/hypr/hyprland.conf'
;;
esacr

29
scripts/systemmenu.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
choice=$(printf "󰍛 System Monitor\n󰑐 Disk Usage\n󰒋 Processes\n󰈆 Restart Waybar\n󰅶 Restart Dunst\n󰑐 Reload Hyprland\n󰋊 Check Updates" | wofi --dmenu --prompt "System")
case "$choice" in
"󰍛 System Monitor")
gnome-system-monitor
;;
"󰑐 Disk Usage")
kitty -e bash -lc 'df -h; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."'
;;
"󰒋 Processes")
kitty -e btop
;;
"󰈆 Restart Waybar")
pkill waybar
waybar >/dev/null 2>&1 &
;;
"󰅶 Restart Dunst")
pkill dunst
dunst >/dev/null 2>&1 &
;;
"󰑐 Reload Hyprland")
hyprctl reload
;;
"󰋊 Check Updates")
kitty -e bash -lc 'pkexec pacman -Sy; pacman -Qu; echo; read -n 1 -s -r -p "Taste drücken zum Schließen..."'
;;
esac

22
scripts/wallpapermenu.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
WALLDIR="$HOME/Pictures/Wallpapers"
choice=$(find "$WALLDIR" -maxdepth 1 -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.webp" \) -printf "%f\n" | sort | wofi --dmenu --prompt "Wallpaper")
[ -z "$choice" ] && exit 0
wall="$WALLDIR/$choice"
cat > "$HOME/.config/hypr/hyprpaper.conf" <<EOF
wallpaper {
monitor =
path = $wall
fit_mode = cover
}
EOF
pkill hyprpaper
hyprpaper -c "$HOME/.config/hypr/hyprpaper.conf" >/dev/null 2>&1 &
notify-send "Wallpaper geändert" "$choice"