trying to prevent showing overflow

This commit is contained in:
2026-02-27 17:17:56 +01:00
parent 462c1fe755
commit 9653b209fc
@@ -16,7 +16,8 @@ command -v jq >/dev/null 2>&1 || fail_json "jq not in PATH"
# If layout is not scrolling → respond with 0
layout="$(hyprctl getoption general:layout 2>/dev/null | awk '/str:/ {print $2; exit}')"
if [[ "$layout" != "scrolling" ]]; then
printf '{"text":"%s 0","tooltip":"layout != scrolling","class":"ok"}\n' "$ICON"
printf '{"text":"","tooltip":"%d windows; approx %d fit","class":"ok"}\n' \
"$win_count" "$max_visible"
exit 0
fi