From 0df0dbd6358b08c1f50d0cedd8c823f08cf662dd Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sun, 9 Jun 2024 14:44:49 +0100 Subject: used xargs to strip leading spaces from result --- .config/eww/scripts/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config') diff --git a/.config/eww/scripts/start.sh b/.config/eww/scripts/start.sh index 1e5c023..628fa77 100755 --- a/.config/eww/scripts/start.sh +++ b/.config/eww/scripts/start.sh @@ -4,7 +4,7 @@ eww kill # start a bar for each monitor -monitors=$(wlr-randr | grep "^[^ ]" | awk '{ print$1 }' | wc -l) +monitors=$(wlr-randr | grep "^[^ ]" | awk '{ print$1 }' | wc -l | xargs) for ((i = 0 ; i < $monitors ; i++)); do eww open bar${i} -- cgit v1.2.3