_dump/prtwnd.sh

12 lines
207 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env zsh
# print screen current window
WND=`xprop -root \
| grep '_NET_ACTIVE_WINDOW(WINDOW)' \
| grep -oE '0x\w+'
`
import -window "$WND" \
"/_/PrtWnd--$(date '+%Y%m%d@%H%M%S').png"