mini repairs

This commit is contained in:
Hannes
2026-06-09 00:05:13 +02:00
parent b77a58479b
commit 4f169c660e
+3 -4
View File
@@ -14,14 +14,13 @@ IMAGE="$1"
image_name=$(basename "$IMAGE") image_name=$(basename "$IMAGE")
image="$WALLPAPER_DIR/$image_name" image="$WALLPAPER_DIR/$image_name"
echo "start"
# Check if an image was provided # Check if an image was provided
if [[ -z "$IMAGE" ]]; then if [[ -z "$IMAGE" ]]; then
echo "Usage: $0 /path/to/image" echo "Usage: $0 /path/to/image"
exit 1 exit 1
fi fi
echo "start"
if [ -x "/usr/bin/swww-daemon" ]; then if [ -x "/usr/bin/swww-daemon" ]; then
echo "swww-daemon exists and is executable" echo "swww-daemon exists and is executable"
@@ -54,7 +53,7 @@ elif [ -x "/usr/bin/hyprpaper" ]; then
sed -i "3s|path = .*|path = ${image}|" ~/.config/hypr/hyprpaper.conf sed -i "3s|path = .*|path = ${image}|" ~/.config/hypr/hyprpaper.conf
hyprctl monitors -j | jq -r 'sort_by(.id) | .[].name' | while IFS= read -r display; do hyprctl monitors -j | jq -r 'sort_by(.id) | .[].name' | while IFS= read -r display; do
echo "hyprctl hyprpaper wallpaper $display, $image" # echo "hyprctl hyprpaper wallpaper $display, $image"
hyprctl hyprpaper wallpaper "$display, $image" hyprctl hyprpaper wallpaper "$display, $image"
done done
fi fi
@@ -81,7 +80,7 @@ blurred_wp="$static_wallpaper_dir/blurred.jpg"
if [ -x "/usr/bin/magick" ]; then if [ -x "/usr/bin/magick" ]; then
magick $image -blur $blur $blurred_wp magick $image -blur $blur $blurred_wp
echo "magick $image -blur $blur $blurred_wp" # echo "magick $image -blur $blur $blurred_wp"
else else
cp $image $blurred_wp cp $image $blurred_wp
fi fi