mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
applying of sddm theme fixed
This commit is contained in:
parent
dadfea04ba
commit
45a8cbf224
@ -74,12 +74,20 @@ if git clone --depth 1 "$source_theme" "$theme_name"; then
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
# If the directory doesn't exist, create it and set up the new theme
|
|
||||||
echo "$CAT - $sddm_conf_dir not found, creating..." | tee -a "$LOG"
|
echo "$CAT - $sddm_conf_dir not found, creating..." | tee -a "$LOG"
|
||||||
sudo mkdir -p "$sddm_conf_dir" 2>&1 | tee -a "$LOG"
|
sudo mkdir -p "$sddm_conf_dir" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e "[Theme]\nCurrent=$theme_name" | sudo tee "$sddm_conf_dir/theme.conf.user" 2>&1 | tee -a "$LOG"
|
if [ ! -f "$sddm_conf_dir/theme.conf.user" ]; then
|
||||||
|
echo -e "[Theme]\nCurrent = $theme_name" | sudo tee "$sddm_conf_dir/theme.conf.user" > /dev/null
|
||||||
|
|
||||||
|
if [ -f "$sddm_conf_dir/theme.conf.user" ]; then
|
||||||
echo "Created and configured $sddm_conf_dir/theme.conf.user with theme $theme_name" | tee -a "$LOG"
|
echo "Created and configured $sddm_conf_dir/theme.conf.user with theme $theme_name" | tee -a "$LOG"
|
||||||
|
else
|
||||||
|
echo "Failed to create $sddm_conf_dir/theme.conf.user" | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "$sddm_conf_dir/theme.conf.user already exists, skipping creation." | tee -a "$LOG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Replace current background from assets
|
# Replace current background from assets
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user