From 4424faa58f7d46b0fca9143933109bad0569a6e1 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Mon, 30 Jun 2025 16:48:18 +0200 Subject: [PATCH] switch to cmake build because hyprpm is shit --- dot_config/hypr/programs.conf.tmpl | 7 +++- executable_install-fedora.sh | 52 ++++++++---------------------- 2 files changed, 20 insertions(+), 39 deletions(-) diff --git a/dot_config/hypr/programs.conf.tmpl b/dot_config/hypr/programs.conf.tmpl index 033786d..02ce343 100644 --- a/dot_config/hypr/programs.conf.tmpl +++ b/dot_config/hypr/programs.conf.tmpl @@ -21,7 +21,6 @@ exec-once = nm-applet & exec-once = blueman-applet & exec-once = swaync & exec-once = waybar & hyprpaper -exec-once = hyprpm reload -n exec-once = [workspace 2 silent] firefox exec-once = hypridle 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 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 {{- if eq .chezmoi.hostname "sri-laptop-fedora" }} exec-once = [workspace 6 silent] outlook-for-linux diff --git a/executable_install-fedora.sh b/executable_install-fedora.sh index e1973be..df6a893 100644 --- a/executable_install-fedora.sh +++ b/executable_install-fedora.sh @@ -66,44 +66,6 @@ sudo dnf install -y \ docker-ce docker-ce-cli containerd.io \ 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 sudo rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg if [ ! -e /etc/yum.repos.d/vscodium.repo ]; then @@ -164,6 +126,20 @@ else echo "dotool ist bereits installiert, überspringe Download" 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 PACKAGE="outlook-for-linux"