mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
wayland lab wallpaper fix
This commit is contained in:
parent
a6f4c51fcd
commit
c84863b49e
3 changed files with 15 additions and 18 deletions
33
setup.sh
33
setup.sh
|
|
@ -89,7 +89,7 @@ sudo make install
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
# Step 7: Apply Custom Splash Screen and Wallpaper
|
# Step 7: Apply Custom Splash Screen and Wayland Wallpaper
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
echo ""
|
echo ""
|
||||||
echo "Step 7: Applying Timeturner visual identity..."
|
echo "Step 7: Applying Timeturner visual identity..."
|
||||||
|
|
@ -99,32 +99,29 @@ 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 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
|
sudo chmod 644 /usr/share/plymouth/themes/pix/splash.png
|
||||||
|
|
||||||
# Wallpaper
|
# Wallpaper for LabWC / swaybg
|
||||||
|
echo "Installing swaybg for Wayland wallpaper management..."
|
||||||
|
sudo apt install -y swaybg
|
||||||
|
|
||||||
echo "Downloading wallpaper..."
|
echo "Downloading wallpaper..."
|
||||||
mkdir -p /home/hermione/Pictures
|
mkdir -p /home/hermione/Pictures
|
||||||
curl -L -o /home/hermione/Pictures/wallpaper.png https://raw.githubusercontent.com/cjfranko/NTP-Timeturner/master/wallpaper.png
|
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
|
chown hermione:hermione /home/hermione/Pictures/wallpaper.png
|
||||||
|
|
||||||
# Find LXDE config directory (e.g. LXDE, LXDE-pi)
|
# Update labwc init file
|
||||||
PCMANFM_CONF_DIR=$(find /home/hermione/.config/pcmanfm -type d -name "LXDE*" | head -n 1)
|
INIT_FILE="/home/hermione/.config/labwc/init"
|
||||||
CONFIG_FILE="$PCMANFM_CONF_DIR/desktop-items-0.conf"
|
mkdir -p "$(dirname "$INIT_FILE")"
|
||||||
WALLPAPER_PATH="/home/hermione/Pictures/wallpaper.png"
|
|
||||||
|
|
||||||
echo "Updating LXDE config in $CONFIG_FILE..."
|
if ! grep -q "swaybg" "$INIT_FILE" 2>/dev/null; then
|
||||||
mkdir -p "$(dirname "$CONFIG_FILE")"
|
echo "Adding swaybg launch command to LabWC init file..."
|
||||||
if [ -f "$CONFIG_FILE" ]; then
|
echo "exec swaybg -i /home/hermione/Pictures/wallpaper.png --mode fill" >> "$INIT_FILE"
|
||||||
sed -i "s|^wallpaper=.*|wallpaper=$WALLPAPER_PATH|g" "$CONFIG_FILE"
|
|
||||||
else
|
else
|
||||||
echo "[*]" > "$CONFIG_FILE"
|
echo "LabWC wallpaper command already present — skipping"
|
||||||
echo "wallpaper=$WALLPAPER_PATH" >> "$CONFIG_FILE"
|
|
||||||
echo "wallpaper_mode=stretch" >> "$CONFIG_FILE"
|
|
||||||
fi
|
fi
|
||||||
chown hermione:hermione "$CONFIG_FILE"
|
|
||||||
|
|
||||||
echo "Attempting to refresh desktop wallpaper..."
|
chown hermione:hermione "$INIT_FILE"
|
||||||
sudo -u hermione DISPLAY=:0 pcmanfm --reconfigure || echo "Desktop not running or not LXDE — wallpaper will apply on next login."
|
|
||||||
|
|
||||||
echo "Custom splash and wallpaper applied."
|
echo "Custom splash and Wayland wallpaper applied."
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
# Final Message
|
# Final Message
|
||||||
|
|
@ -136,5 +133,5 @@ echo "────────────────────────
|
||||||
echo ""
|
echo ""
|
||||||
echo "The TimeTurner is ready. But remember:"
|
echo "The TimeTurner is ready. But remember:"
|
||||||
echo "\"You must not be seen.\" – Hermione Granger"
|
echo "\"You must not be seen.\" – Hermione Granger"
|
||||||
echo "Visual enchantments provided by Luna, Department of Temporal Engineering."
|
echo "Visual enchantments adapted for Wayland by Luna."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
||||||
BIN
splash.png
BIN
splash.png
Binary file not shown.
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 99 KiB |
BIN
wallpaper.png
BIN
wallpaper.png
Binary file not shown.
|
Before Width: | Height: | Size: 271 KiB After Width: | Height: | Size: 391 KiB |
Loading…
Add table
Add a link
Reference in a new issue