From 697cb75b2c3307321c2424a26f910031e5e645b6 Mon Sep 17 00:00:00 2001 From: Henro Veijer Date: Fri, 27 Feb 2026 22:11:51 +0100 Subject: [PATCH] Preventing empty overflow --- .../desktop/hypr/scripts/hyprscroll-overflow.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/henrovnix_ok/assets/conf/desktop/hypr/scripts/hyprscroll-overflow.sh b/henrovnix_ok/assets/conf/desktop/hypr/scripts/hyprscroll-overflow.sh index 8e06ee14b..76ab96968 100755 --- a/henrovnix_ok/assets/conf/desktop/hypr/scripts/hyprscroll-overflow.sh +++ b/henrovnix_ok/assets/conf/desktop/hypr/scripts/hyprscroll-overflow.sh @@ -114,20 +114,14 @@ if [[ "${1:-}" == "--pick" ]]; then exit 0 fi -# Status JSON for Waybar -# Make it ALWAYS visible so you can hover to see the list. -# Show +N only when overflow AND layout==scrolling, keeping your original intent. -text="$ICON" -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 +if (( overflow == 0 )) || [[ "$layout" != "scrolling" ]]; then printf '{"text":""}\n' exit 0 fi +text="$ICON +$overflow" +cls="overflow" + tooltip="WS ${focused_ws_id} • ${win_count} window(s)\n" tooltip+="Approx ${max_visible} fit (column_width=${COLUMN_WIDTH})\n" tooltip+="------------------------------\n"