# limitations under the License.
-# Get screenshots from bow, discard them if they dont change much.
+# Get screenshots from bo, discard them if they dont change much.
[[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@"
f=/run/user/1000/ziva-tmp.jpg
-install -g 1000 -o 1000 -m 700 $dest_dir
+install -d -g 1000 -o 1000 -m 700 $dest_dir
cd $dest_dir
shopt -s nullglob
jpgs=( 20*jpg )
lastf=$(ls -1 20*jpg | tail -n1)
fi
-ssh bow DISPLAY=:0 scrot -z $f 2>/dev/null || exit 0
-rsync --inplace bow:$f $dest_dir 2>/dev/null || exit 0
-ssh bow rm -f $f
+ssh bo DISPLAY=:0 scrot -z $f 2>/dev/null || exit 0
+rsync --inplace bo:$f $dest_dir 2>/dev/null || exit 0
+ssh bo rm -f $f
same=false
if [[ $lastf ]]; then