From 64ac436053a7a0e16eca1c140143d7b552dca658 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Mon, 24 Aug 2026 20:55:32 +0100 Subject: Added extra sleep on line 57 and changed other two to sleep 0.1 too. --- .config/cow/scripts/after-start.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.config/cow/scripts/after-start.sh') diff --git a/.config/cow/scripts/after-start.sh b/.config/cow/scripts/after-start.sh index 6c08dc1..1c2ab1a 100755 --- a/.config/cow/scripts/after-start.sh +++ b/.config/cow/scripts/after-start.sh @@ -38,7 +38,7 @@ sh "$HOME/.config/waybar/scripts/swayidle-update.sh" # kill any running instances if they exist pkill -9 cowpager pkill -9 cowbuttons -sleep 0.2 +sleep 0.1 # start cowpager and cowbuttons for each monitor monitors=$(moocow show output | jq -r '.data[] | .name' | wc -l | xargs) @@ -48,11 +48,12 @@ while [ "$i" -ge 1 ]; do output=$(moocow show output | jq -r '.data[] | .name' | awk 'FNR == '$i' {print}') moocow focus -o "$output" # Slow script down as it causes problems with the positioning rules in cow.conf - sleep 0.2 + sleep 0.1 cowpager -m "$output" & cowbuttons & # Focus the lowest active tag (desk nr) num=$(moocow show desk | jq -r '.data.desks | map(select(.active == true)) | sort_by(.nr) | .[0].nr') moocow desk -t "$output" -d "$num" + sleep 0.1 i=$((i-1)) done -- cgit v1.3