blob: 6a01fd67a69d523cfbce75404d4616576647dc30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
SCROT=$(which scrot)
[ -x "${SCROT}" ] || exit 1
screenshot() {
case $1 in
full)
"${SCROT}" --multidisp
;;
window)
sleep 0.5
"${SCROT}" --select
;;
*)
;;
esac;
}
screenshot $1
|