mirror of
https://github.com/duma799/hyprduma-config.git
synced 2026-05-13 14:11:01 +00:00
14 lines
498 B
Bash
Executable File
14 lines
498 B
Bash
Executable File
#!/bin/bash
|
|
# Sync Caelestia wallpaper with swaybg
|
|
|
|
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
|