aboutsummaryrefslogtreecommitdiff
path: root/.config/cow/scripts/after-start.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/cow/scripts/after-start.sh')
-rwxr-xr-x.config/cow/scripts/after-start.sh5
1 files changed, 3 insertions, 2 deletions
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