changelog shortlog graph tags branches changeset files file revisions raw help

Mercurial > infra / annotate scripts/sc.sh

changeset 29: 0fc025be1ae0
parent: aac1cf6cf2bb
author: ellis <ellis@rwest.io>
date: Fri, 29 Dec 2023 21:10:24 -0500
permissions: -rwxr-xr-x
description: sbcl rlwrap and makefile upgrades
17
aac1cf6cf2bb more scripts
ellis <ellis@rwest.io>
parents:
diff changeset
1
 #!/bin/sh
29
0fc025be1ae0 sbcl rlwrap and makefile upgrades
ellis <ellis@rwest.io>
parents: 17
diff changeset
2
 # take screenshot of current window on sway
0fc025be1ae0 sbcl rlwrap and makefile upgrades
ellis <ellis@rwest.io>
parents: 17
diff changeset
3
 swaymsg -t get_tree | jq -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g - ${1:-"$(date +%s).png"}