mirror of
https://github.com/duma799/hyprduma-config.git
synced 2026-05-13 22:21:00 +00:00
Wallpaper fixes.
This commit is contained in:
Executable
+14
@@ -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
|
||||
Reference in New Issue
Block a user