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
|
||||
|
||||
@@ -279,9 +279,6 @@ bindl = , XF86AudioPause, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
# AI Command Center
|
||||
source = ~/.config/hypr/ai-command-center.conf
|
||||
|
||||
##############################
|
||||
### WINDOWS AND WORKSPACES ###
|
||||
##############################
|
||||
|
||||
@@ -76,6 +76,7 @@ print(' '.join(items))
|
||||
chmod +x "$HOME/.config/waybar/scripts/"*.sh 2>/dev/null || true
|
||||
|
||||
replace_home_paths "$HOME/.config/hypr" "/home/pascal"
|
||||
replace_home_paths "$HOME/.config/wofi" "/home/pascal"
|
||||
replace_home_paths "$HOME/.config/gtk-3.0" "/home/pascal"
|
||||
replace_home_paths "$HOME/.config/gtk-4.0" "/home/pascal"
|
||||
replace_home_paths "$HOME/.config/qt5ct" "/home/pascal"
|
||||
|
||||
@@ -84,7 +84,10 @@ module_main() {
|
||||
sudo_run chown "$(id -u):$(id -g)" /var/lib/pascal-sddm-theme 2>/dev/null || true
|
||||
|
||||
log_info "Applying theme..."
|
||||
tui_spin "Applying theme..." bash "$theme_script" --apply "$choice"
|
||||
if ! tui_spin "Applying theme..." bash "$theme_script" --apply "$choice"; then
|
||||
log_warn "Theme application returned errors"
|
||||
return 1
|
||||
fi
|
||||
|
||||
log_success "Theme applied: $(basename "$choice" .theme)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user