From a76f1f3af7600386214528101a3323e8696391c7 Mon Sep 17 00:00:00 2001 From: Pepe44DEV Date: Wed, 27 May 2026 23:02:00 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20theme=20application=20h=C3=A4ngt=20nicht?= =?UTF-8?q?=20mehr=20auf=20frischer=20Installation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit apply_theme() rief hyprctl (keyword + hyprpaper) und restart_waybar ohne zu prüfen ob Hyprland läuft → hyprctl hing bis Timeout im TTY. Fix: pgrep -x Hyprland guard vor allen hyprctl/waybar-Aufrufen. apply_theme schreibt jetzt Config-Files (gelten beim nächsten Login), überspringt aber Display-abhängige Kommandos. --- dotfiles/hypr/Scripts/theme-menu.sh | 6 +++--- modules/post/apply-theme.sh | 5 +---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/dotfiles/hypr/Scripts/theme-menu.sh b/dotfiles/hypr/Scripts/theme-menu.sh index 0e0c240..b505bc4 100755 --- a/dotfiles/hypr/Scripts/theme-menu.sh +++ b/dotfiles/hypr/Scripts/theme-menu.sh @@ -1104,7 +1104,7 @@ EOF return fi - if command -v hyprctl >/dev/null 2>&1; then + if command -v hyprctl >/dev/null 2>&1 && pgrep -x Hyprland >/dev/null 2>&1; then if ! pgrep -x hyprpaper >/dev/null 2>&1; then start_detached hyprpaper sleep 0.2 @@ -1134,7 +1134,7 @@ EOF write_sddm_theme_assets apply_wallpaper - if command -v hyprctl >/dev/null 2>&1; then + if command -v hyprctl >/dev/null 2>&1 && pgrep -x Hyprland >/dev/null 2>&1; then hyprctl keyword general:col.active_border "$ACTIVE_BORDER" >/dev/null || true hyprctl keyword general:col.inactive_border "$INACTIVE_BORDER" >/dev/null || true fi @@ -1143,7 +1143,7 @@ EOF swaync-client -rs >/dev/null 2>&1 || true fi - if command -v waybar >/dev/null 2>&1; then + if command -v waybar >/dev/null 2>&1 && pgrep -x Hyprland >/dev/null 2>&1; then restart_waybar fi diff --git a/modules/post/apply-theme.sh b/modules/post/apply-theme.sh index b34bb83..fc00bad 100755 --- a/modules/post/apply-theme.sh +++ b/modules/post/apply-theme.sh @@ -8,10 +8,7 @@ module_required() { return 1; } module_should_skip() { return 1; } module_prereqs() { - if ! have hyprctl && ! have notify-send; then - log_warn "Neither hyprctl nor notify-send found. Theme can still be applied later." - return 0 - fi + return 0 } module_main() {