Everywhere: Add Hyprland Wayland config

This commit is contained in:
Riyyi
2025-02-09 22:46:46 +01:00
parent f0835c1a06
commit 6e50e217c3
35 changed files with 1151 additions and 94 deletions
+21 -2
View File
@@ -1,7 +1,26 @@
#!/bin/sh
WALLPAPER="$HOME/pictures/wallpaper.jpg"
# Overwrite wallpaper with new image if provided
[ -n "$1" ] && cp "$1" "$HOME/pictures/wallpaper.jpg"
[ -n "$1" ] && cp "$1" "$WALLPAPER"
# Set wallpaper
feh --no-fehbg --bg-fill "$HOME/pictures/wallpaper.jpg"
if [ "$WAYLAND" = true ]; then
pkill hyprpaper
setsid -f hyprpaper
# Wait until hyprpaper is available
while true; do
output=$(hyprctl hyprpaper)
if ! echo "$output" | grep -q ".sock"; then
break
fi
sleep 0.1
done
hyprctl hyprpaper preload "$WALLPAPER"
hyprctl hyprpaper wallpaper ",$WALLPAPER"
else
feh --no-fehbg --bg-fill "$WALLPAPER"
fi