mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-19 04:08:48 +00:00
wallpaper region limit: use min size of all instead of max
This commit is contained in:
parent
de941d8b9e
commit
4f8574ef50
1 changed files with 3 additions and 3 deletions
|
|
@ -233,9 +233,9 @@ switch() {
|
|||
deactivate
|
||||
|
||||
# Pass screen width, height, and wallpaper path to post_process
|
||||
min_width_desired="$(hyprctl monitors -j | jq '([.[].width] | max)' | xargs)"
|
||||
min_height_desired="$(hyprctl monitors -j | jq '([.[].height] | max)' | xargs)"
|
||||
post_process "$min_width_desired" "$min_height_desired" "$imgpath"
|
||||
max_width_desired="$(hyprctl monitors -j | jq '([.[].width] | min)' | xargs)"
|
||||
max_height_desired="$(hyprctl monitors -j | jq '([.[].height] | min)' | xargs)"
|
||||
post_process "$max_width_desired" "$max_height_desired" "$imgpath"
|
||||
}
|
||||
|
||||
main() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue