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

image: add reload options #247

Merged
merged 5 commits into from
Apr 7, 2024
Merged

image: add reload options #247

merged 5 commits into from
Apr 7, 2024

Conversation

bvr-yr
Copy link
Contributor

@bvr-yr bvr-yr commented Mar 30, 2024

close #225

  • reload_time - interval in secs to reload, if 0 can be reloaded with SIGUSR2
  • reload_cmd - command to obtain new path, if empty reuse default one

not sure with option names (as always)

considering that only png is supported, I guess main usecase should be converting and then killall -USR2 in script, if album arts for example

reload.mp4

mostly copied from label widget

@vaxerski vaxerski merged commit bbbb960 into hyprwm:main Apr 7, 2024
1 check passed
@mahaveergurjar
Copy link

close #225

  • reload_time - interval in secs to reload, if 0 can be reloaded with SIGUSR2
  • reload_cmd - command to obtain new path, if empty reuse default one

not sure with option names (as always)

considering that only png is supported, I guess main usecase should be converting and then killall -USR2 in script, if album arts for example

reload.mp4
mostly copied from label widget

how to this visualizer in hyprlock

@bvr-yr
Copy link
Contributor Author

bvr-yr commented Apr 15, 2024

nohow, it's processed cava raw output, you can check this python example

particularly what you see on video, is futher processing of array (bar lengths) to print | character

@mahaveergurjar
Copy link

nohow, it's processed cava raw output, you can check this python example

particularly what you see on video, is futher processing of array (bar lengths) to print | character

I only need cava when run music and also need hide the all things when music run only see the art and cava
240415_20h50m08s_screenshot
Add this time my lock see this type

@bvr-yr
Copy link
Contributor Author

bvr-yr commented Apr 15, 2024

I only need cava when run music and also need hide the all things when music run only see the art and cava

you need a wrapper script that will launch hyprlock with different config when something is playing, like

#!/usr/bin/bash

if [[ $(playerctl status) == Playing ]]; then
    hyprlock --config ~/.config/hypr/music.conf
else
    hyprlock
fi

as for cava, I suggest using Shape widget with xray = true and launching cava before hyprlock, see #266

@mahaveergurjar
Copy link

Please Can you send music.conf with cava

@bvr-yr
Copy link
Contributor Author

bvr-yr commented Apr 15, 2024

just use Shape with same size and position you will launch cava at, nothing special
except Y position is bottom-based in hyplock config

for example, 1920x1080 monitor:

hyprctl dispatch -- exec "[float; size 600 200; move 660 740; noborder; noshadow; rounding 0] SDL_VIDEODRIVER=wayland SDL_VIDEO_ALLOW_SCREENSAVER=1 cava"

before launching hyprlock, and

shape {
    size = 600, 200
    position = 660, 140
    halign = none
    valign = none
    xray = true
}

I also suggest setting method = sdl_glsl in output section of cava's config

@mahaveergurjar
Copy link

Thanks

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

Successfully merging this pull request may close these issues.

[Req] Reload the image widget
3 participants