8 lines
162 B
Bash
8 lines
162 B
Bash
#!/bin/sh
|
|
|
|
timestamp="$(date +%Y%m%d%H%M%S)"
|
|
targetbase="$HOME/screenshots"
|
|
mkdir -p $targetbase
|
|
[ -d $targetbase ] || exit 1
|
|
scrot -s $targetbase/$timestamp.png
|