[i3] Sort screenshots into appropriate date/month folders

This commit is contained in:
Sebastian Schulze 2018-07-27 19:35:03 +02:00
parent 3909a006d6
commit 7592c37c01
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
escrotum '/home/bascht/Pictures/Screenshots/Screenshot-%Y-%m-%d-%H%M%S-$wx$h.png' $*
FOLDER="/home/bascht/Pictures/Screenshots/$(date +'%Y-%m')"
mkdir -p ${FOLDER}
escrotum "${FOLDER}/Screenshot-%Y-%m-%d-%H%M%S-$wx$h.png" $*