scrot command overwrites screenshot
Two simple options you can try:
-
increase the time resolution so that files created at least 1s apart have distinct names:
scrot '%Y-%m-%d-%H:%M:%S_$wx$h_scrot.png' -e 'mv $f ~/Pictures/'
-
add a
--backup=numbered
option to themv
command:scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv --backup=numbered $f ~/Pictures/'