scrot command overwrites screenshot

Two simple options you can try:

  1. 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/'
    
  2. add a --backup=numbered option to the mv command:

    scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv --backup=numbered $f ~/Pictures/'