sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 61d59180b875573f8fa42e084d8e66a6b12b61f3
parent dce8abcdab7a0a65c27e5280b702a592ab557be6
Author: Hugo Osvaldo Barrera <hugo@barrera.io>
Date:   Fri,  1 May 2020 10:55:17 +0200

grimshot: Avoid screenshots overwriting each other

Due to the date format used, if several screenshots are taken in
succession, each one overwrote the other.

This change set makes each one have a different name to avoid this.

Also avoid using spaces, since many scripts and tools are unhappy with
file names with spaces.

Diffstat:
Mcontrib/grimshot | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/grimshot b/contrib/grimshot @@ -28,7 +28,7 @@ getTargetDirectory() { ACTION=${1:-usage} SUBJECT=${2:-screen} -FILE=${3:-$(getTargetDirectory)/$(date +'Grimshot %Y-%m-%d %H-%M-%S.png')} +FILE=${3:-$(getTargetDirectory)/$(date -Ins).png} if [ "$ACTION" = "usage" ] ; then echo "Usage:"