switch to cmake build because hyprpm is shit

This commit is contained in:
Simon Rieger 2025-06-30 16:48:18 +02:00
parent 0adf7c026f
commit 4424faa58f
2 changed files with 20 additions and 39 deletions

View file

@ -21,7 +21,6 @@ exec-once = nm-applet &
exec-once = blueman-applet & exec-once = blueman-applet &
exec-once = swaync & exec-once = swaync &
exec-once = waybar & hyprpaper exec-once = waybar & hyprpaper
exec-once = hyprpm reload -n
exec-once = [workspace 2 silent] firefox exec-once = [workspace 2 silent] firefox
exec-once = hypridle exec-once = hypridle
exec-once = [workspace 3 silent] codium exec-once = [workspace 3 silent] codium
@ -29,6 +28,12 @@ exec-once = [workspace 3 silent] codium
exec-once = [workspace 4 silent] flatpak run io.github.dweymouth.supersonic exec-once = [workspace 4 silent] flatpak run io.github.dweymouth.supersonic
exec-once = [workspace 5 silent] flatpak run im.riot.Riot exec-once = [workspace 5 silent] flatpak run im.riot.Riot
# If you are installing hycov with hyprpm, you should comment out this
plugin = {{ .chezmoi.homeDir }}/repos/hyprland-plugins/hyprexpo/build/libhyprexpo.so
# If you are installing hycov by manually compile , you should comment out this
#exec-once = hyprpm reload -n
# machine-specific configuration # machine-specific configuration
{{- if eq .chezmoi.hostname "sri-laptop-fedora" }} {{- if eq .chezmoi.hostname "sri-laptop-fedora" }}
exec-once = [workspace 6 silent] outlook-for-linux exec-once = [workspace 6 silent] outlook-for-linux

View file

@ -66,44 +66,6 @@ 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_plugin() {
local REPO_URL="$1"
local PLUGINS="$2"
local REPO_NAME="${REPO_URL##*/}"
IFS=',' read -ra PLUGINS_ARRAY <<< "$PLUGINS"
# Repository-Prüfung mit tr
if ! hyprpm list 2>/dev/null | tr -dc '[[:print:]\n]' | grep -q "$REPO_NAME"; 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-Verarbeitung mit tr und angepasstem Grep
for PLUGIN in "${PLUGINS_ARRAY[@]}"; do
# Bereinige Ausgabe und prüfe Status
if hyprpm list | tr -dc '[[:print:]\n]' | grep -A1 "Plugin $PLUGIN" | grep -q "enabled:.*true"; 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 mehreren Plugins
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
if [ ! -e /etc/yum.repos.d/vscodium.repo ]; then if [ ! -e /etc/yum.repos.d/vscodium.repo ]; then
@ -164,6 +126,20 @@ else
echo "dotool ist bereits installiert, überspringe Download" echo "dotool ist bereits installiert, überspringe Download"
fi fi
# hyprexpo mit Prüfung
if [[ ! -f ${HOME}/repos/hyprland-plugins/hyprexpo/build/libhyprexpo.so ]]; then
mkdir -p ${HOME}/repos
cd ${HOME}/repos
git clone https://github.com/hyprwm/hyprland-plugins
cd hyprland-plugins/hyprexpo
cmake -B build
cmake --build build
cd
echo "hyprexpo wurde auf dem System installiert"
else
echo "hyprexpo ist bereits installiert, überspringe Download"
fi
# Paketname wie im RPM: meist outlook-for-linux # Paketname wie im RPM: meist outlook-for-linux
PACKAGE="outlook-for-linux" PACKAGE="outlook-for-linux"