update package installation script

This commit is contained in:
Simon Rieger 2025-05-25 01:38:53 +02:00
parent d890e23845
commit 8eb76c60fa

View file

@ -66,9 +66,33 @@ sudo dnf install -y \
docker-ce docker-ce-cli containerd.io \ docker-ce docker-ce-cli containerd.io \
docker-buildx-plugin docker-compose-plugin docker-buildx-plugin docker-compose-plugin
hyprpm update hyprpm_update_plugin() {
hyprpm add https://github.com/hyprwm/hyprland-plugins local REPO_URL="$1"
hyprpm enable hyprexpo local PLUGIN_NAME="$2"
# Repository-Prüfung mit stderr-Umleitung
if ! hyprpm list 2>/dev/null | grep -q "$REPO_URL"; then
echo "Füge Repository hinzu..."
if ! hyprpm add "$REPO_URL" 2>/dev/null; then
echo "⚠️ Repository konnte nicht hinzugefügt (existiert bereits?)"
fi
fi
# Plugin-Installation mit stderr/sdout-Silencing
echo "Installiere $PLUGIN_NAME..."
hyprpm install "$PLUGIN_NAME" >/dev/null 2>&1 || echo " Plugin bereits installiert"
# Aktivierung und Neustart
hyprpm enable "$PLUGIN_NAME" && {
echo "$PLUGIN_NAME aktiviert"
hyprpm reload
}
}
# Funktionsaufruf mit Parametern
hyprpm_update_plugin \
"https://github.com/hyprwm/hyprland-plugins" \
"hyprexpo"
## VSCodium ## VSCodium
sudo rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg sudo rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg