Add screenshot.sh
This commit is contained in:
parent
96d557b635
commit
8d9e8e1add
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
var=$(mktemp /tmp/XXXXXXXX.png)
|
||||||
|
scrot -zm $var
|
||||||
|
exit_code=$?
|
||||||
|
if [[ $exit_code -ne 0 ]]; then
|
||||||
|
echo False
|
||||||
|
exit $exit_code
|
||||||
|
fi
|
||||||
|
echo $var
|
Loading…
Reference in New Issue