presianbg if any one want a cli/script you can try this 2 lines (install scrot)
screenshot-w.sh
#!/bin/bash
scrot -u -d 5 ~/Pictures/%Y-%m-%d-%H-%M-%S.png
notify-send -u low "Scrot" "Screenshot [window] done !!!"
screenshot.sh
#!/bin/bash
scrot -d 5 ~/Pictures/%Y-%m-%d-%H-%M-%S.png
notify-send -u low "Scrot" "Screenshot done !!!"