changeset 320: | 9422a14d72fd |
parent: | 0fc025be1ae0 |
author: | Richard Westhaver <ellis@rwest.io> |
date: | Sun, 07 Jul 2024 21:07:07 -0400 |
permissions: | -rwxr-xr-x |
description: | tweak |
1 #!/bin/sh2 # take screenshot of current window on sway3 swaymsg -t get_tree | jq -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g - ${1:-"$(date +%s).png"}