feat: add wallpaper script and integrate it into Hyprland configuration

This commit is contained in:
2025-11-05 01:44:38 +00:00
parent 85e7a5b22f
commit b1f071d92b
3 changed files with 23 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Set wallpaper on all connected monitors using mpvpaper
WALLPAPER="$HOME/nix-flake/assets/wallpaper.mp4"
# Kill existing mpvpaper instances
pkill -9 mpvpaper 2>/dev/null
# Get all connected monitors from Hyprland
MONITORS=$(hyprctl monitors -j | jq -r '.[].name')
# Start mpvpaper for each monitor
for monitor in $MONITORS; do
mpvpaper -o 'no-audio loop' "$monitor" "$WALLPAPER" &
done