#!/usr/pkg/bin/bash
#######################################################################
# displaywrapper
# this is a little script mainly written for usage with Worker
# it's a wrapper for imagemagick for the "show image mode"
#
# written by Ralf Hoffmann
# Worker: http://www.boomerangsworld.de/worker
#######################################################################

d=$(which display 2>/dev/null)
if test -n "$d"; then
  e=$(identify -ping "$6" 2>/dev/null)
  if test -n "$e"; then
    display -geometry $3x$4+$1+$2 -foreground "$7" -window 0x$5 "$6" >/dev/null 2>/dev/null
  fi
fi
