From 496d4ff7f09484069899de8aa53c2ebe71be6a4f Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 14 Feb 2026 17:55:12 -0500 Subject: [PATCH] fix(waybar): better fuzzel --- scripts/ctl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/ctl b/scripts/ctl index 16b8a59..55751d3 100755 --- a/scripts/ctl +++ b/scripts/ctl @@ -91,7 +91,8 @@ audio) if [ "$XDG_SESSION_TYPE" = x11 ]; then choice="$(printf "%s\n" "$sinks" | awk -F'\t' '{print $1": "$2}' | dmenu -i -p "select sink:" | cut -d: -f1)" else - choice="$(printf "%s\n" "$sinks" | awk -F'\t' '{print $1": "$2}' | fuzzel --dmenu --prompt="sink: " | cut -d: -f1)" + count=$(printf "%s\n" "$sinks" | wc -l) + choice="$(printf "%s\n" "$sinks" | awk -F'\t' '{print $1": "$2}' | fuzzel --dmenu --prompt="sink: " --lines="$count" | cut -d: -f1)" fi [ "$choice" ] && wpctl set-default "$choice" ;; @@ -101,7 +102,8 @@ audio) if [ "$XDG_SESSION_TYPE" = x11 ]; then choice="$(printf "%s\n" "$sources" | awk -F'\t' '{print $1": "$2}' | dmenu -i -p "select source:" | cut -d: -f1)" else - choice="$(printf "%s\n" "$sources" | awk -F'\t' '{print $1": "$2}' | fuzzel --dmenu --prompt="source: " | cut -d: -f1)" + count=$(printf "%s\n" "$sources" | wc -l) + choice="$(printf "%s\n" "$sources" | awk -F'\t' '{print $1": "$2}' | fuzzel --dmenu --prompt="source: " --lines="$count" | cut -d: -f1)" fi [ "$choice" ] && wpctl set-default "$choice" ;;