changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / scripts/sc.sh

changeset 339: b8fa25450726
parent: 0fc025be1ae0
author: Richard Westhaver <ellis@rwest.io>
date: Sun, 21 Jul 2024 00:40:31 -0400
permissions: -rwxr-xr-x
description: tweak
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"}