openpgp4fpr:9A1721C44C2E015E15EF6DFBE642875C488F6874
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env nix-shell | |
#! nix-shell -i bash -p xdotool hacksaw | |
set -euo pipefail | |
IFS=$' ' | |
shopt -s lastpipe | |
# hacksaw to get coords, this needs lastpipe | |
hacksaw -c "#5511bb" -f "%w %h %x %y" | read -r W H X Y | |
#echo "$X $Y $W $H" |
OlderNewer