changeset 48: | 953c5127546a |
parent: | stash/scripts/sc.sh@45f3b1bc3cd7 |
child: | f69061a590da |
author: | Richard Westhaver <ellis@rwest.io> |
date: | Wed, 19 Jun 2024 19:27:14 +0000 |
permissions: | -rwxr-xr-x |
description: | stash -> .stash |
1 #!/usr/local/env bash3 # take screenshot of current window on sway4 # swaymsg -t get_tree | jq -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g - ${1:-"$(date +%s).png"}