Update fedora install script
This commit is contained in:
parent
d540881e7b
commit
a05bf7ee10
1 changed files with 19 additions and 9 deletions
|
@ -68,10 +68,11 @@ sudo dnf install -y \
|
|||
|
||||
hyprpm_update_plugin() {
|
||||
local REPO_URL="$1"
|
||||
local PLUGIN_NAME="$2"
|
||||
local PLUGINS="$2"
|
||||
local REPO_NAME="${REPO_URL##*/}"
|
||||
IFS=',' read -ra PLUGINS_ARRAY <<< "$PLUGINS"
|
||||
|
||||
# Repository-Prüfung mit stderr-Umleitung
|
||||
# Repository-Prüfung
|
||||
if ! hyprpm list 2>/dev/null | grep -q "$REPO_NAME"; then
|
||||
echo "Füge Repository hinzu..."
|
||||
if ! hyprpm add "$REPO_URL" 2>/dev/null; then
|
||||
|
@ -79,19 +80,28 @@ hyprpm_update_plugin() {
|
|||
fi
|
||||
fi
|
||||
|
||||
# Aktivierung und Neustart
|
||||
hyprpm enable "$PLUGIN_NAME" && {
|
||||
echo "✅ $PLUGIN_NAME aktiviert"
|
||||
hyprpm reload
|
||||
}
|
||||
# Plugin-Aktivierung mit Statusprüfung
|
||||
for PLUGIN in "${PLUGINS_ARRAY[@]}"; do
|
||||
if hyprpm list | grep -q "^${PLUGIN}\s+enabled"; then
|
||||
echo "ℹ️ $PLUGIN ist bereits aktiviert"
|
||||
else
|
||||
echo "Aktiviere $PLUGIN..."
|
||||
if hyprpm enable "$PLUGIN" 2>/dev/null; then
|
||||
echo "✅ $PLUGIN erfolgreich aktiviert"
|
||||
hyprpm reload
|
||||
else
|
||||
echo "❌ Fehler bei der Aktivierung von $PLUGIN"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
## Hyprland Plugins
|
||||
hyprpm update
|
||||
### Funktionsaufruf mit Parametern
|
||||
### Funktionsaufruf mit mehreren Plugins
|
||||
hyprpm_update_plugin \
|
||||
"https://github.com/hyprwm/hyprland-plugins" \
|
||||
"hyprexpo"
|
||||
"hyprexpo,hyprbars"
|
||||
|
||||
## VSCodium
|
||||
sudo rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg
|
||||
|
|
Loading…
Add table
Reference in a new issue