diff --git a/setup.sh b/setup.sh index 7bb2b54..08656db 100644 --- a/setup.sh +++ b/setup.sh @@ -58,7 +58,7 @@ if [ ! -d "libltc" ]; then fi cd libltc -echo "Installing libltc build dependencies..." +echo "Preparing libltc build..." ./autogen.sh ./configure @@ -88,6 +88,39 @@ echo "Installing ltc-tools..." sudo make install sudo ldconfig +# --------------------------------------------------------- +# Step 7: Apply Custom Splash Screen and Wallpaper +# --------------------------------------------------------- +echo "" +echo "Step 7: Applying Timeturner visual identity..." + +# Splash screen +echo "Downloading splash screen..." +sudo curl -L -o /usr/share/plymouth/themes/pix/splash.png https://raw.githubusercontent.com/cjfranko/NTP-Timeturner/master/splash.png +sudo chmod 644 /usr/share/plymouth/themes/pix/splash.png + +# Wallpaper +echo "Downloading wallpaper..." +mkdir -p /home/hermione/Pictures +curl -L -o /home/hermione/Pictures/wallpaper.png https://raw.githubusercontent.com/cjfranko/NTP-Timeturner/master/wallpaper.png +chown hermione:hermione /home/hermione/Pictures/wallpaper.png + +# Set LXDE wallpaper via pcmanfm config (assumes default LXDE desktop) +WALLPAPER_PATH="/home/hermione/Pictures/wallpaper.png" +CONFIG_FILE="/home/hermione/.config/pcmanfm/LXDE/desktop-items-0.conf" +mkdir -p "$(dirname "$CONFIG_FILE")" + +if [ -f "$CONFIG_FILE" ]; then + sed -i "s|wallpaper=.*|wallpaper=$WALLPAPER_PATH|g" "$CONFIG_FILE" +else + echo "[*]" > "$CONFIG_FILE" + echo "wallpaper=$WALLPAPER_PATH" >> "$CONFIG_FILE" + echo "wallpaper_mode=stretch" >> "$CONFIG_FILE" +fi +chown hermione:hermione "$CONFIG_FILE" + +echo "Custom splash and wallpaper applied." + # --------------------------------------------------------- # Final Message # --------------------------------------------------------- @@ -98,5 +131,5 @@ echo "──────────────────────── echo "" echo "The TimeTurner is ready. But remember:" echo "\"You must not be seen.\" – Hermione Granger" -echo "Guidance provided by Luna, Department of Temporal Engineering." +echo "Visual enchantments provided by Luna, Department of Temporal Engineering." echo "" diff --git a/splash.png b/splash.png new file mode 100644 index 0000000..0f7c2a3 Binary files /dev/null and b/splash.png differ diff --git a/timeturner.jpg b/timeturner.jpg new file mode 100644 index 0000000..dc99379 Binary files /dev/null and b/timeturner.jpg differ diff --git a/wallpaper.png b/wallpaper.png new file mode 100644 index 0000000..d8926a5 Binary files /dev/null and b/wallpaper.png differ