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 /.local/bin/screenshot.sh | |
| parent | 4ec10ae4b26c188fb23044b2976ecb1d853ec89a (diff) | |
Updated to reflect breaking changes in latest CoW commit
Diffstat (limited to '.local/bin/screenshot.sh')
| -rwxr-xr-x | .local/bin/screenshot.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 ;; *) |
