update package installation template

This commit is contained in:
Simon Rieger 2025-05-26 11:20:14 +02:00
parent a05bf7ee10
commit 26a9b48af3

View file

@ -82,7 +82,14 @@ hyprpm_update_plugin() {
# Plugin-Aktivierung mit Statusprüfung
for PLUGIN in "${PLUGINS_ARRAY[@]}"; do
if hyprpm list | grep -q "^${PLUGIN}\s+enabled"; then
if hyprpm list | ansi2txt | sed -E '
/Plugin/{N;s/\n//;}
s/[→│└─]//g
s/Plugin //g
s/enabled: /enabled:/
s/^ +//g
s/ +/ /g
' | grep -q "^${PLUGIN} enabled:true"; then
echo " $PLUGIN ist bereits aktiviert"
else
echo "Aktiviere $PLUGIN..."
@ -101,7 +108,7 @@ hyprpm update
### Funktionsaufruf mit mehreren Plugins
hyprpm_update_plugin \
"https://github.com/hyprwm/hyprland-plugins" \
"hyprexpo,hyprbars"
"hyprexpo"
## VSCodium
sudo rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg