From 61f6c5d47a13ebc41594911ef57530005800a0d1 Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Thu, 2 Jul 2020 00:34:07 +0300 Subject: [PATCH] Adding H.M.S. to help reduce file overwriting --- bin/scrot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/scrot.sh b/bin/scrot.sh index 56a78a1..0ddb5ff 100755 --- a/bin/scrot.sh +++ b/bin/scrot.sh @@ -7,4 +7,5 @@ if [ -d "$dest" ]; then mkdir -p "$dest" fi -scrot "%Y%m%d_$wx$h.png" $@ -e "mv $f $dest" +# Unable to use $dest and still need to figure out why +scrot '%Y%m%d-%H.%M.%S_$wx$h.png' $@ -e 'mv $f ~/Screenshots'