Open se7en-x230 opened 6 months ago
@se7en-x230 i used image and got this result downside: no blur noise and other background only features the interval was set to 1 sec making it a bit laggy
How to due this @fjueic
I need this for my music hyprlock layout I add my background music album but the background to reload I need to unlock and lock then background reload
In second picture you see the background not change ACC. to album background
its in wiki here reload time and reload cmd
never tried it:- reload time 0 if you want to handle it yourself instead of reloading every certain time interval
pkill -USR1 hyprlock
to reload
as for changing background image i dont think you can
in my example
i used image and got this result
i did not used background i just used a image and make it cover entire screen but that way you will lose blur
Okay but any way to reloading background because if image used for background then blur not achieve
how to set image ratio to set fit the image in 1920X1080 @fjueic
I achieve blur but image ratio not acc. to 1920x1080
https://github.com/hyprwm/hyprlock/assets/57872034/a9ec8fdb-7e4e-41a8-8124-86b6f5ac82d3
like this?
how did you achieve blur?
i make script for this
#!/bin/env bash
THUMB=/tmp/hyde-mpris
THUMB_BLURRED=/tmp/hyde-mpris-blurred
fetch_thumb() {
artUrl=$(playerctl -p spotify metadata --format '{{mpris:artUrl}}')
[[ "${artUrl}" = "$(cat "${THUMB}.inf")" ]] && return 0
printf "%s\n" "$artUrl" > "${THUMB}.inf"
curl -so "${THUMB}.png" "$artUrl"
convert "${THUMB}.png" -quality 50 "${THUMB}.png" && "${THUMB}.png"
# Create blurred version
convert "${THUMB}.png" -blur 20x20 "${THUMB_BLURRED}.png"
pkill -USR2 hyprlock
}
{ playerctl -p spotify metadata --format '{{title}} {{artist}}' && fetch_thumb ;} || { rm -f "${THUMB}*" && exit 1;}
like this?
How to stretch the image to cover black area
stretch? i don't like this idea
most probably there is no way to do it using hyprlock
you can do this via command line tool and and store output in /tmp
convert input.png -resize 1920x1080\! output.png
i don't like the idea personally
i make script for this
#!/bin/env bash THUMB=/tmp/hyde-mpris THUMB_BLURRED=/tmp/hyde-mpris-blurred fetch_thumb() { artUrl=$(playerctl -p spotify metadata --format '{{mpris:artUrl}}') [[ "${artUrl}" = "$(cat "${THUMB}.inf")" ]] && return 0 printf "%s\n" "$artUrl" > "${THUMB}.inf" curl -so "${THUMB}.png" "$artUrl" convert "${THUMB}.png" -quality 50 "${THUMB}.png" && "${THUMB}.png" # Create blurred version convert "${THUMB}.png" -blur 20x20 "${THUMB_BLURRED}.png" pkill -USR2 hyprlock } { playerctl -p spotify metadata --format '{{title}} {{artist}}' && fetch_thumb ;} || { rm -f "${THUMB}*" && exit 1;}
ok pre-processing i thought you did it natively
if you have a script stretching should be just one line away
I try this and working thanks but not see good any idea to see only zoom the center part of image to fill the screen
convert input.png -resize 1920x1080^ -gravity center -extent 1920x1080 output.png
bruh say directly if there is more pre-processing you would like to do, don't keep adding
ok thanks
I hope this one is not forgotten ... I would love to be able to have "dynamic" images on my lock screen.
image.reload_cmd
does not work well since my image library is mainly jpeg and the reload_cmd works with png only. I can write a conversion script, but then I don't want to convert stuff all the timeimage
does not scale as nicely as a background
imagebackground
has a nice blur feature and already scales the image used nicelyhyprpapr
to use my collection of images for the background imageSo I kindly request to have
path = background
as an option if it is possible. TIA
EDIT: an it might be a good idea to mention the PNG only in the wiki as well - took me a while to figure that out
@sluedecke what part are you unable to do?
If you read the above comments, everything can be done. Blur and format can be pre processed
If you read the above comments, everything can be done. Blur and format can be pre processed
You are right, I could script all of this. But why should I, if all this application logic is already implemented in hyprlock? From my perspective it seems to be more consistent if hyprlock supports other file types than PNG for image reloading and/or if it would support reloading for the background image. Everything else (blurring, positioning, ...) is already there.
If you read the above comments, everything can be done. Blur and format can be pre processed
You are right, I could script all of this. But why should I, if all this application logic is already implemented in hyprlock? From my perspective it seems to be more consistent if hyprlock supports other file types than PNG for image reloading and/or if it would support reloading for the background image. Everything else (blurring, positioning, ...) is already there.
fair point but I don't think anyone wants to implement it rn
this is my flow, image gets converted to png whenever i change the wallpaper variable. Note that i have hardcoded the monitor resolution.
as for blur and changing in intervals, it should be easy. Ask me if you can stuck
Image: is reloading but Background does not have this ability?