_dump/prtwnd.sh

12 lines
207 B
Bash
Executable File

#!/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"