pc-monitor-bot/screenshot.sh

10 lines
147 B
Bash
Raw Normal View History

2018-10-02 21:07:22 +02:00
#!/usr/bin/env bash
var=$(mktemp /tmp/XXXXXXXX.png)
scrot -zm $var
exit_code=$?
if [[ $exit_code -ne 0 ]]; then
exit $exit_code
fi
2018-10-02 22:28:00 +02:00
echo -n $var