aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-06-09 14:44:49 +0100
committerJustine Smithies <justine@smithies.me.uk>2024-06-09 14:44:49 +0100
commit0df0dbd6358b08c1f50d0cedd8c823f08cf662dd (patch)
tree76dbcdbca4d0bee57532ce3249c26f9440f21026
parentf36843c1930bf787f37edc3ffedb4be397d734ed (diff)
used xargs to strip leading spaces from result
-rwxr-xr-x.config/eww/scripts/start.sh2
1 files changed, 1 insertions, 1 deletions
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}