blob: e3b638db0e4a43ce26a1f6a15ebee4788d2e8949 (
plain)
1 #!/usr/bin/env bash
2 #
3 # A simple screenshot script. Very handy for calling a specific from a window
4 # manager using custom hotkeys (eg: i3)
5 #
6 # Requirements:
7 # imagemagick
8 #
9 savePath=~/Pictures/screenshots/
10
11 if [[ ! -d $savePath ]]; then
12 mkdir -p $savePath
13 fi
14
15 # Wait two seconds
16 sleep 2;
17
18 # Get our file suffix
19 date=`date '+%Y%m%d-%H%M%S'`
20
21 # And action!
22 import $savePath/screen.$date.jpg
|