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.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/cow/scripts/after-start.sh b/.config/cow/scripts/after-start.sh
index 6c8684c..a350fcd 100755
--- a/.config/cow/scripts/after-start.sh
+++ b/.config/cow/scripts/after-start.sh
@@ -43,11 +43,11 @@ pkill -9 cowiconman
sleep 0.1
# start cowpager and cowbuttons for each monitor
-monitors=$(moocow show output | jq -r '.data[] | .name' | wc -l | xargs)
+monitors=$(moocow show -a output | jq -r '.data[] | .name' | wc -l | xargs)
i=$monitors
while [ "$i" -ge 1 ]; do
- output=$(moocow show output | jq -r '.data[] | .name' | awk 'FNR == '$i' {print}')
+ output=$(moocow show -a 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.1
@@ -56,7 +56,7 @@ while [ "$i" -ge 1 ]; do
cowclock &
cowiconman &
# Focus the lowest active tag (desk nr)
- num=$(moocow show desk | jq -r '.data.desks | map(select(.active == true)) | sort_by(.nr) | .[0].nr')
+ num=$(moocow show -a 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))