Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- output="/home/user/pictures/screenshots/$(date +%Y-%m-%d--%H-%M-%S)_active.png"
- focusWindow=$(xdotool getwindowfocus getwindowfocus)
- import -screen -window ${focusWindow} ${output}
- kdialog --title "ACTIVE WINDOW Screenshot" --passivepopup "${output}" 3
- echo '#!/bin/bash'> /tmp/screenshotPrior
- echo 'output=/home/user/pictures/screenshots/$(date +%Y-%m-%d--%H-%M-%S)_redo.png'>> /tmp/screenshotPrior
- echo 'import -screen -window '${focusWindow}' ${output}'>> /tmp/screenshotPrior
- echo 'kdialog --title "REDO ACTIVE WINDOW Screenshot" --passivepopup "${output}" 3'>> /tmp/screenshotPrior
- chmod +x /tmp/screenshotPrior
- # chmod +x /tmp/screenshotPrior
- # import -screen -window $(xdotool getwindowfocus getwindowfocus) ${output}
- # xwininfo | grep -i 'window id'
- # xprop -id $(xprop -root 32x '\t$0' _NET_ACTIVE_WINDOW | cut -f 2) WM_CLIENT_LEADER
- # export screenshotPrior=import -screen -window $(xdotool getwindowfocus getwindowfocus) ${output}
Advertisement
Add Comment
Please, Sign In to add comment