diff options
| author | Justine Smithies <justine@smithies.me.uk> | 2026-08-30 17:18:33 +0100 |
|---|---|---|
| committer | Justine Smithies <justine@smithies.me.uk> | 2026-08-30 17:18:33 +0100 |
| commit | 46f1bec8fc8d3546cd85e0ced52d0dced55dd77f (patch) | |
| tree | 63d63fee1beb569d77f52fa797d3100d1fe8f76e /.config/cow/scripts | |
| parent | 4ec10ae4b26c188fb23044b2976ecb1d853ec89a (diff) | |
Updated to reflect breaking changes in latest CoW commit
Diffstat (limited to '.config/cow/scripts')
| -rwxr-xr-x | .config/cow/scripts/after-start.sh | 6 |
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)) |
