HIde overflow f=if no overflow
This commit is contained in:
@@ -122,6 +122,10 @@ cls="ok"
|
|||||||
if (( overflow > 0 )) && [[ "$layout" == "scrolling" ]]; then
|
if (( overflow > 0 )) && [[ "$layout" == "scrolling" ]]; then
|
||||||
text="$ICON +$overflow"
|
text="$ICON +$overflow"
|
||||||
cls="overflow"
|
cls="overflow"
|
||||||
|
elif (( overflow == 0 )) || [[ "$layout" != "scrolling" ]]; then
|
||||||
|
# Tell Waybar to hide the module
|
||||||
|
printf '{"text":""}\n'
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tooltip="WS ${focused_ws_id} • ${win_count} window(s)\n"
|
tooltip="WS ${focused_ws_id} • ${win_count} window(s)\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user