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