Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uhh my script somehow made it crash or sth? #195

Open
littleblack111 opened this issue Aug 31, 2024 · 0 comments
Open

uhh my script somehow made it crash or sth? #195

littleblack111 opened this issue Aug 31, 2024 · 0 comments

Comments

@littleblack111
Copy link

this is the script: for getting random wallpaper & nice transition:

#!/bin/bash
# Animated wallpaper changer
feh --bg-fill $XDG_CACHE_HOME/wallpaper/old.jpg

DISPLAY=:0
XDG_PICTURES_DIR="${XDG_PICTURES_DIR:-$HOME/Pictures}"
WALLPAPERS="$XDG_PICTURES_DIR/wallpapers/"
wallpappath=$(find "$WALLPAPERS" | shuf -n 1)
cp "$wallpappath" $XDG_CACHE_HOME/wallpaper/old.jpg
hyprctl hyprpaper preload "$wallpappath"
echo "$wallpappath" > "$XDG_CACHE_HOME/current.bg"

DELAY=0.005
QUALITY=0.000001
RESIZE=30%


if [ $# -ne 1 ]; then
    for i in {7..11}; do
        convert "$wallpappath" -resize $RESIZE -fill black -blur $((75 - ($i - 7) * 15))% -fill black -colorize $((75 - ($i - 7) * 15))% -quality $QUALITY /tmp/transition${i}.jpg &
        hyprctl hyprpaper preload "/tmp/transition${i}.jpg"
    done
    for i in {1..11}; do
        # feh --bg-fill /tmp/transition${i}.jpg
        hyprctl hyprpaper wallpaper ", /tmp/transition${i}.jpg"
        sleep $DELAY
    done
    rm /tmp/transition*.jpg
fi

feh --bg-fill "$wallpappath"

# cp "$wallpappath" $HOME/.cache/wallpaper/old.jpg

hyprctl hyprpaper unload all

for i in {1..6}; do
    convert $HOME/.cache/wallpaper/old.jpg -resize $RESIZE -fill black -blur $(($i * 10))% -fill black -colorize $(($i * 10))% -quality $QUALITY /tmp/transition${i}.jpg &
    hyprctl hyprpaper preload "/tmp/transition${i}.jpg"
done

didn't knew that hyprpaper have transition builtin.

this is the log of it crashing:

[LOG] Welcome to hyprpaper!
built from commit  ()
[WARN] Monitor DP-1 does not have a target! A wallpaper will not be created.
[LOG] hyprpaper socket started at /run/user/1000/hypr/9a09eac79b85c846e3a865a9078a3f8ff65a9259_1725094491_554406650/.hyprpaper.sock (fd: 4)
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: hyprpaper
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: help
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: unload all
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: unload a
[LOG] Cannot unload a target that was not loaded!
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: listactive
[LOG] numWallpapersActive: 0
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: listloaded
[LOG] numWallpapersLoaded: 0
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /home/system/Pictures/wallpapers/0197.jpg
[LOG] Preloaded target /home/system/Pictures/wallpapers/0197.jpg in 44.05ms -> Pixel size: [1934, 1451]
[LOG] Buffer created for target /home/system/Pictures/wallpapers/0197.jpg, Shared Memory usage: 132.7MB
[LOG] Total SM usage for all buffers: 132.7MB
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: hyprpaper
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , ~/Pictures/wallpapers/0197.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] configure for DP-1
[LOG] handlePreferredScale: 1.00 for 74b0a8001620
[LOG] configure for DP-1
[LOG] Buffer created for target /home/system/Pictures/wallpapers/0197.jpg, Shared Memory usage: 14.7MB
[LOG] Total SM usage for all buffers: 147.5MB
[LOG] Image data for DP-1: /home/system/Pictures/wallpapers/0197.jpg at [0.00, -181.56], scale: 1.32 (original image size: [1934, 1451])
[LOG] Rendering splash: h
[LOG] Splash color: 55ffffff
[LOG] Splash font size: 14, pos: 964.15, 1055.54
[LOG] Submitting viewport dest size 2560x1440 for a8001620
[LOG] handlePreferredScale: 1.50 for 74b0a8001620
[LOG] Buffer created for target /home/system/Pictures/wallpapers/0197.jpg, Shared Memory usage: 33.2MB
[LOG] Total SM usage for all buffers: 180.6MB
[LOG] Image data for DP-1: /home/system/Pictures/wallpapers/0197.jpg at [0.00, -181.56], scale: 1.99 (original image size: [1934, 1451])
[LOG] Rendering splash: h
[LOG] Splash color: 55ffffff
[LOG] Splash font size: 14, pos: 965.22, 1055.54
[LOG] Submitting viewport dest size 2560x1440 for a8001620
[LOG] handlePreferredScale: 1.50 for 74b0a8001620
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /home/system/Pictures/wallpapers/0290.jpg
[LOG] Preloaded target /home/system/Pictures/wallpapers/0290.jpg in 40.92ms -> Pixel size: [2110, 1080]
[LOG] Buffer created for target /home/system/Pictures/wallpapers/0290.jpg, Shared Memory usage: 33.2MB
[LOG] Total SM usage for all buffers: 213.8MB
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /tmp/transition7.jpg
[LOG] Preloaded target /tmp/transition7.jpg in 1.18ms -> Pixel size: [576, 324]
[LOG] Buffer created for target /tmp/transition7.jpg, Shared Memory usage: 33.2MB
[LOG] Total SM usage for all buffers: 247.0MB
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /tmp/transition8.jpg
[LOG] Preloaded target /tmp/transition8.jpg in 1.64ms -> Pixel size: [576, 324]
[LOG] Buffer created for target /tmp/transition8.jpg, Shared Memory usage: 33.2MB
[LOG] Total SM usage for all buffers: 280.2MB
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /tmp/transition9.jpg
[LOG] Preloaded target /tmp/transition9.jpg in 1.06ms -> Pixel size: [576, 324]
[LOG] Buffer created for target /tmp/transition9.jpg, Shared Memory usage: 33.2MB
[LOG] Total SM usage for all buffers: 313.3MB
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /tmp/transition10.jpg
[LOG] Preloaded target /tmp/transition10.jpg in 1.13ms -> Pixel size: [576, 324]
[LOG] Buffer created for target /tmp/transition10.jpg, Shared Memory usage: 33.2MB
[LOG] Total SM usage for all buffers: 346.5MB
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /tmp/transition11.jpg
[LOG] Preloaded target /tmp/transition11.jpg in 1.42ms -> Pixel size: [576, 324]
[LOG] Buffer created for target /tmp/transition11.jpg, Shared Memory usage: 33.2MB
[LOG] Total SM usage for all buffers: 379.7MB
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /tmp/transition1.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /tmp/transition2.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /tmp/transition3.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /tmp/transition4.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /tmp/transition5.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /tmp/transition6.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /tmp/transition7.jpg
[LOG] Buffer created for target /tmp/transition11.jpg, Shared Memory usage: 59.0MB
[LOG] Buffer created for target /tmp/transition9.jpg, Shared Memory usage: 59.0MB
[LOG] Buffer created for target /tmp/transition8.jpg, Shared Memory usage: 59.0MB
[LOG] Buffer created for target /home/system/Pictures/wallpapers/0290.jpg, Shared Memory usage: 59.0MB
[LOG] Buffer created for target /tmp/transition10.jpg, Shared Memory usage: 59.0MB
[LOG] Buffer created for target /tmp/transition7.jpg, Shared Memory usage: 59.0MB
[LOG] Buffer created for target /home/system/Pictures/wallpapers/0197.jpg, Shared Memory usage: 59.0MB
[LOG] Total SM usage for all buffers: 792.6MB
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /tmp/transition8.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /tmp/transition9.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /tmp/transition10.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper , /tmp/transition11.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: unload all
[LOG] Unloading target /tmp/transition11.jpg, preload path /run/user/1000/.hyprpaper_rswiM8
[LOG] Unloading target /tmp/transition11.jpg, preload path /run/user/1000/.hyprpaper_Hh7Jrx
[LOG] Unloading target /tmp/transition9.jpg, preload path /run/user/1000/.hyprpaper_TOL6OW
[LOG] Unloading target /tmp/transition9.jpg, preload path /run/user/1000/.hyprpaper_9zLpW6
[LOG] Unloading target /tmp/transition8.jpg, preload path /run/user/1000/.hyprpaper_Z571W2
[LOG] Unloading target /tmp/transition8.jpg, preload path /run/user/1000/.hyprpaper_lSmMZM
[LOG] Unloading target /home/system/Pictures/wallpapers/0290.jpg, preload path /run/user/1000/.hyprpaper_6VuUEU
[LOG] Unloading target /home/system/Pictures/wallpapers/0290.jpg, preload path /run/user/1000/.hyprpaper_3xOjEV
[LOG] Unloading target /tmp/transition10.jpg, preload path /run/user/1000/.hyprpaper_pUTVSr
[LOG] Unloading target /tmp/transition10.jpg, preload path /run/user/1000/.hyprpaper_JmJpxr
[LOG] Unloading target /tmp/transition7.jpg, preload path /run/user/1000/.hyprpaper_lFTDvN
[LOG] Unloading target /tmp/transition7.jpg, preload path /run/user/1000/.hyprpaper_WPKHUs
[LOG] Unloading target /home/system/Pictures/wallpapers/0197.jpg, preload path /run/user/1000/.hyprpaper_KXQWLD
[LOG] Unloading target /home/system/Pictures/wallpapers/0197.jpg, preload path /run/user/1000/.hyprpaper_pl1wCA
[LOG] Unloading target /home/system/Pictures/wallpapers/0197.jpg, preload path /run/user/1000/.hyprpaper_sE95IK
[LOG] Unloading target /home/system/Pictures/wallpapers/0197.jpg, preload path /run/user/1000/.hyprpaper_m86Rcc
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /tmp/transition1.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /tmp/transition2.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /tmp/transition3.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /tmp/transition4.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /tmp/transition5.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /tmp/transition6.jpg
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Closing Accepted Connection
[LOG] configure for DP-1
[LOG] handlePreferredScale: 1.00 for 74b0a81a37e0
[LOG] configure for DP-1
[LOG] Pool buffer missing for available target??
[LOG] Pool buffer failed #2. Ignoring WP.
[LOG] configure for DP-1
[LOG] handlePreferredScale: 1.00 for 74b0a81a4480
[LOG] configure for DP-1
[LOG] configure for DP-1
[LOG] handlePreferredScale: 1.00 for 74b0a81a48c0
[LOG] configure for DP-1
[LOG] configure for DP-1
[LOG] handlePreferredScale: 1.00 for 74b0a81a4d30
[LOG] configure for DP-1
[LOG] configure for DP-1
[LOG] handlePreferredScale: 1.00 for 74b0a81a51c0
[LOG] configure for DP-1
[LOG] Pool buffer missing for available target??
[LOG] Pool buffer failed #2. Ignoring WP.
zwlr_layer_surface_v1#68: error 0: Serial invalid in ack_configure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant