forked from Shinonome/dots-hyprland
wallpaper region limit: use min size of all instead of max
This commit is contained in:
@@ -233,9 +233,9 @@ switch() {
|
|||||||
deactivate
|
deactivate
|
||||||
|
|
||||||
# Pass screen width, height, and wallpaper path to post_process
|
# Pass screen width, height, and wallpaper path to post_process
|
||||||
min_width_desired="$(hyprctl monitors -j | jq '([.[].width] | max)' | xargs)"
|
max_width_desired="$(hyprctl monitors -j | jq '([.[].width] | min)' | xargs)"
|
||||||
min_height_desired="$(hyprctl monitors -j | jq '([.[].height] | max)' | xargs)"
|
max_height_desired="$(hyprctl monitors -j | jq '([.[].height] | min)' | xargs)"
|
||||||
post_process "$min_width_desired" "$min_height_desired" "$imgpath"
|
post_process "$max_width_desired" "$max_height_desired" "$imgpath"
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user