changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > home / .stash/scripts/sc.sh

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 bash
2 import png:- >> ${1:-"$(date +%s).png"}
3 # take screenshot of current window on sway
4 # swaymsg -t get_tree | jq -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g - ${1:-"$(date +%s).png"}