mini repairs
This commit is contained in:
@@ -14,14 +14,13 @@ IMAGE="$1"
|
||||
image_name=$(basename "$IMAGE")
|
||||
image="$WALLPAPER_DIR/$image_name"
|
||||
|
||||
echo "start"
|
||||
|
||||
# Check if an image was provided
|
||||
if [[ -z "$IMAGE" ]]; then
|
||||
echo "Usage: $0 /path/to/image"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "start"
|
||||
|
||||
if [ -x "/usr/bin/swww-daemon" ]; then
|
||||
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
|
||||
|
||||
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"
|
||||
done
|
||||
fi
|
||||
@@ -81,7 +80,7 @@ blurred_wp="$static_wallpaper_dir/blurred.jpg"
|
||||
|
||||
if [ -x "/usr/bin/magick" ]; then
|
||||
magick $image -blur $blur $blurred_wp
|
||||
echo "magick $image -blur $blur $blurred_wp"
|
||||
# echo "magick $image -blur $blur $blurred_wp"
|
||||
else
|
||||
cp $image $blurred_wp
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user