changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / scripts/sc.sh

changeset 342: a3135650c721
parent: 0fc025be1ae0
author: Richard Westhaver <ellis@rwest.io>
date: Sun, 21 Jul 2024 18:41:14 -0400
permissions: -rwxr-xr-x
description: fix
1 #!/bin/sh
2 # take screenshot of current window on sway
3 swaymsg -t get_tree | jq -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g - ${1:-"$(date +%s).png"}