From 4f8574ef50e4cf40104cdb607d213a54c2db152e Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 10 Jun 2025 13:24:58 +0200 Subject: [PATCH] wallpaper region limit: use min size of all instead of max --- .config/quickshell/scripts/switchwall.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/quickshell/scripts/switchwall.sh b/.config/quickshell/scripts/switchwall.sh index adc76201d..dffd9bd61 100755 --- a/.config/quickshell/scripts/switchwall.sh +++ b/.config/quickshell/scripts/switchwall.sh @@ -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() {