diff options
Diffstat (limited to 'keyboard/screenshot')
| -rwxr-xr-x | keyboard/screenshot | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/keyboard/screenshot b/keyboard/screenshot index 25e99cd..2df9049 100755 --- a/keyboard/screenshot +++ b/keyboard/screenshot @@ -10,9 +10,9 @@ HELPDOC } # Scrot and xclip opts -fmt=$(date '+%m-%d-%4Y_%I:%M:%S_%p.png') -tmppath=/tmp/$fmt -savpath=~/pics/screenshots/$fmt +fmt=$(date '+%m-%d-%4Y_%I:%M:%S_%p.png') # Scrot will output ..._000.png in case of rapid screenshots +tmppath=/tmp +savpath=~/pics/screenshots normopt='' cropopt='--select --freeze' normexp='echo $f' @@ -41,6 +41,7 @@ while getopts "cxh" arg; do esac done -scrot $opt $path --exec "$exp" \ - && notify-send $notifyopts -i $path "$summ" "$body" \ +mkdir -p "$path" +scrot $opt "$path/$fmt" --exec "$exp" \ + && notify-send $notifyopts -i "$path/$fmt" "$summ" "$body" \ || notify-send $notifyopts "Screenshot Failed!" |
