#!/bin/sh
#
# xlogout -g -5-5  -fg Black  -bg DodgerBlue
#
#    Bricons logout button. When user presses it just quit.
# To be used as the last command in a xsession or xinitrc script.
#
# Anthony Thyssen     1 November 1994     <anthony@cit.gu.edu.au>
#
image="std/button.xbm"    # a 64x54 bitmap image
size="-bw 70 -bh 60"      # width and height of button

# -------------------

tmp=/tmp/logout$$
trap "rm -f $tmp; exit 0" 0

cat >$tmp <<EOF
  %icon $image
     kill $$
EOF

# auto remove the above file after we have started!
(sleep 60; rm -f $tmp;) &

# exec to the actual logout button
exec /usr/bin/X11/bricons "$@" \
    -default off -file $tmp  $size \
    -xrm "*Thickness:  0"  -xrm "*borderWidth:  0" \
    >/dev/null 2>&1

