trying to prevent showing overflow
This commit is contained in:
@@ -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
|
# If layout is not scrolling → respond with 0
|
||||||
layout="$(hyprctl getoption general:layout 2>/dev/null | awk '/str:/ {print $2; exit}')"
|
layout="$(hyprctl getoption general:layout 2>/dev/null | awk '/str:/ {print $2; exit}')"
|
||||||
if [[ "$layout" != "scrolling" ]]; then
|
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
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user