fix: wofi-theme + wallpaper + ai-command-center source entfernt
Drei Fixes: 1. ai-command-center.conf aus hyprland.conf entfernt (existiert nicht auf frischer VM -> source= globbing error) 2. hyprpaper.conf in standard hyprpaper Format geschrieben (preload=/wallpaper= statt awww-block-format) awww.conf wird separat geschrieben falls awww installiert ist 3. apply-theme.sh Fehlerbehandlung: tui_spin || return 1 (vorher wurde immer 'Theme applied' gemeldet auch bei Fehler) 4. replace_home_paths auch fuer wofi/ hinzugefuegt
This commit is contained in:
@@ -1067,15 +1067,22 @@ EOF
|
||||
|
||||
apply_wallpaper() {
|
||||
cat >"$HYPRPAPER_CONF" <<EOF
|
||||
wallpaper {
|
||||
monitor =
|
||||
path = $WALLPAPER
|
||||
fit_mode = cover
|
||||
}
|
||||
preload = $WALLPAPER
|
||||
wallpaper = ,$WALLPAPER
|
||||
EOF
|
||||
|
||||
printf '%s\n' "$WALLPAPER" >"$CURRENT_WALLPAPER"
|
||||
|
||||
if command -v awww >/dev/null 2>&1; then
|
||||
cat >"$(dirname "$HYPRPAPER_CONF")/awww.conf" <<EOF
|
||||
wallpaper {
|
||||
monitor =
|
||||
path = $WALLPAPER
|
||||
fit_mode = cover
|
||||
}
|
||||
EOF
|
||||
fi
|
||||
|
||||
if pgrep -x Hyprland >/dev/null 2>&1; then
|
||||
if command -v awww >/dev/null 2>&1; then
|
||||
if ! pgrep -x awww-daemon >/dev/null 2>&1; then
|
||||
|
||||
Reference in New Issue
Block a user