Merge pull request #987 from xtheeq/docs-update

fix(docs): screenshot geometry to use new ipc in full script
This commit is contained in:
DreamMaoMao 2026-05-27 12:17:42 +08:00 committed by GitHub
commit ce14ab828b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -173,7 +173,7 @@ case "${1:-fullscreen}" in
g=$(slurp -d); [ -z "$g" ] && exit 1
grim -g "$g" "$filepath" ;;
window)
g=$(mmsg -x | awk '/x / {x=$3} /y / {y=$3} /width / {w=$3} /height / {h=$3} END {print x","y" "w"x"h}')
g=$(mmsg get focusing-client | jq -r '"\(.x),\(.y) \(.width)x\(.height)"')
[ -z "$g" ] && exit 1
grim -g "$g" "$filepath" ;;
freeze)