update package installation script
This commit is contained in:
parent
d890e23845
commit
8eb76c60fa
1 changed files with 27 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue