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() {
|
hyprpm_update_plugin() {
|
||||||
local REPO_URL="$1"
|
local REPO_URL="$1"
|
||||||
local PLUGIN_NAME="$2"
|
local PLUGINS="$2"
|
||||||
local REPO_NAME="${REPO_URL##*/}"
|
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
|
if ! hyprpm list 2>/dev/null | grep -q "$REPO_NAME"; then
|
||||||
echo "Füge Repository hinzu..."
|
echo "Füge Repository hinzu..."
|
||||||
if ! hyprpm add "$REPO_URL" 2>/dev/null; then
|
if ! hyprpm add "$REPO_URL" 2>/dev/null; then
|
||||||
|
@ -79,19 +80,28 @@ hyprpm_update_plugin() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Aktivierung und Neustart
|
# Plugin-Aktivierung mit Statusprüfung
|
||||||
hyprpm enable "$PLUGIN_NAME" && {
|
for PLUGIN in "${PLUGINS_ARRAY[@]}"; do
|
||||||
echo "✅ $PLUGIN_NAME aktiviert"
|
if hyprpm list | grep -q "^${PLUGIN}\s+enabled"; then
|
||||||
hyprpm reload
|
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
|
## Hyprland Plugins
|
||||||
hyprpm update
|
hyprpm update
|
||||||
### Funktionsaufruf mit Parametern
|
### Funktionsaufruf mit mehreren Plugins
|
||||||
hyprpm_update_plugin \
|
hyprpm_update_plugin \
|
||||||
"https://github.com/hyprwm/hyprland-plugins" \
|
"https://github.com/hyprwm/hyprland-plugins" \
|
||||||
"hyprexpo"
|
"hyprexpo,hyprbars"
|
||||||
|
|
||||||
## 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