HIde overflow f=if no overflow
This commit is contained in:
1 parent
44f3aac07c
commit
7234973f01
1 file changed
+4
@@ -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