Wallpaper fixes.

This commit is contained in:
duma97
2025-11-22 00:16:21 +04:00
parent cd05b2d333
commit fcb83e2d26
4 changed files with 270 additions and 27 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
# Sync Caelestia's wallpaper reference with the currently running swaybg wallpaper
# Get the wallpaper path from running swaybg process
WALLPAPER_PATH=$(pgrep -a swaybg | grep -oP '(?<=-i )[^ ]+' | head -1)
if [ -n "$WALLPAPER_PATH" ] && [ -f "$WALLPAPER_PATH" ]; then
mkdir -p ~/.local/state/caelestia/wallpaper
ln -sf "$WALLPAPER_PATH" ~/.local/state/caelestia/wallpaper/current
echo "$WALLPAPER_PATH" > ~/.local/state/caelestia/wallpaper/path.txt
echo "✓ Caelestia wallpaper synced to: $WALLPAPER_PATH"
else
echo "⚠ Could not detect swaybg wallpaper"
fi