Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # How to use:
- #
- # Bring up your terminal emulator (xterm) and type
- #
- # sleep 3; ./screenshot.sh
- #
- # You have three seconds to get the cursor ready. The cursor will be captured and whatever window you click on is captured.
- #
- name=`date +%F-%T | sed -e 's/:/-/g'`
- name+=".png"
- import -window `xwininfo | awk '/Window id/{print $4; exit}'` "$name"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement