aboutsummaryrefslogtreecommitdiff
path: root/.config/cow/scripts
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2026-08-24 20:55:32 +0100
committerJustine Smithies <justine@smithies.me.uk>2026-08-24 20:55:32 +0100
commit64ac436053a7a0e16eca1c140143d7b552dca658 (patch)
tree7cb17b6e5405cab2910e58479deb17a850214d3d /.config/cow/scripts
parent9c24b82bbbf980b91bda16f9d185351f4a4f5a6b (diff)
Added extra sleep on line 57 and changed other two to sleep 0.1 too.
Diffstat (limited to '.config/cow/scripts')
-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