fix user-modal and user-popup in discord theme. add .zshrc.example instead

This commit is contained in:
SeraphimeZelel
2025-11-28 13:42:41 +07:00
parent 7324ac5028
commit 5cc3fb0593
11 changed files with 108 additions and 69 deletions

View File

@@ -11,4 +11,28 @@ cat "$HEADER" > "$BDCSS"
echo "" >> "$BDCSS"
cat "$WALCSS" >> "$BDCSS"
echo "" >> "$BDCSS"
# Extract current wallpaper from gsettings and generate URL variable
CURRENT_WALLPAPER=$(gsettings get org.gnome.desktop.background picture-uri-dark 2>/dev/null || echo "")
if [ -n "$CURRENT_WALLPAPER" ] && [ "$CURRENT_WALLPAPER" != "''" ]; then
# Remove 'file://' prefix and quotes
WALLPAPER_PATH=${CURRENT_WALLPAPER#"'file://"}
WALLPAPER_PATH=${WALLPAPER_PATH%"'"}
# Extract filename only
WALLPAPER_NAME=$(basename "$WALLPAPER_PATH")
# Generate GitHub URL and inject to CSS
GITHUB_WALLPAPER_URL="https://raw.githubusercontent.com/SeraphimeZelel/rion-ricing/refs/heads/main/Wallpaper/$WALLPAPER_NAME"
cat >> "$BDCSS" << EOF
/* Wallpaper URL - Generated by discord-pywalsync.sh */
:root {
--wallpaper: url('$GITHUB_WALLPAPER_URL');
}
EOF
echo "" >> "$BDCSS"
fi
cat "$TEMPLATE" >> "$BDCSS"