From 46f1bec8fc8d3546cd85e0ced52d0dced55dd77f Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sun, 30 Aug 2026 17:18:33 +0100 Subject: Updated to reflect breaking changes in latest CoW commit --- .config/cow/cow.conf | 2 +- .config/cow/scripts/after-start.sh | 6 +++--- .local/bin/screenshot.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.config/cow/cow.conf b/.config/cow/cow.conf index 949f887..d1aa29a 100644 --- a/.config/cow/cow.conf +++ b/.config/cow/cow.conf @@ -576,7 +576,7 @@ bind LCS+Tab window-container -P # These bindings are only useful when desktop_size is greater than 1x1. The # `scroll` command pans the desk viewport by whole pages (with -d / -n / -P) # or by arbitrary sub-page offsets (a bare "H V" percentage, "-p H V" pixels, -# or an interactive "-r" drag bound to a mouse button). See `list-commands` +# or an interactive "-r" drag bound to a mouse button). See `show -a command` # for the full command surface. # # Super+Ctrl+Right/Left/Down/Up: jump one page in that direction 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)) diff --git a/.local/bin/screenshot.sh b/.local/bin/screenshot.sh index eb8807c..3234a71 100755 --- a/.local/bin/screenshot.sh +++ b/.local/bin/screenshot.sh @@ -14,7 +14,7 @@ case $1 in ;; focused-window) # Take a screenshot of the focused window - geometry=$(moocow winops -I | jq -r '.data.frame | "\(.x),\(.y) \(.width)x\(.height)"') + geometry=$(moocow show window | jq -r '.data | "\(.x),\(.y) \(.width)x\(.height)"') grim -g "$geometry" -t jpeg ~/Pictures/Screenshots/"$(date +%Y-%m-%d_%H-%m-%s)".jpg ;; *) -- cgit v1.3