# ~/.tkgoodstuffrc
# parameters and resources for tkgoodstuff and clients

set TKG_border	     4

# CLOCK is also where you click for the tkgoodstuff popup menu.
Client Clock
  
# NET (PPP or SLIP network status indicator and toggler).  Useful but
# probably requires some fiddling for your setup (I have no root
# password on my home machine, so su -c give me root status for any
# command; I need to run ppp-on as root.)
Client Net
set Net_on       "su -c ppp-on"
set Net_off      "su -c ppp-off"

# BIFF (new mail flag, new message scanner, and mail program launcher)
Client Biff
set Biff_mailer  exmh

########################################################################
# POPIMAP (for periodic fetching of mail from remote POP or IMAP
# server.  No window of its own; requires Biff.
# (uncomment to use)
 #Client PopImap 
 #set PopImap_host merv.philosophy.lsa.umich.edu
 #set PopImap_fetch_command get-remote-mailbox
 # #Note: get-remote-mailbox is my script to invoke a version of imapcopy
 # #(a util from ftp.cac.washington.edu) that I modified to copy without
 # #deleting to the named local mailbox (in my case my spool file) only
 # #those messages in the remote mailbox not marked "Seen", and then
 # #marking the copied messages on the server "Seen".  Source or linux
 # #binary available on request.
 #set PopImap_password mypassword 
 #set PopImap_command "echo -e \"$PopImap_user\\n$PopImap_password\" \
 #   | imapcopy \{$PopImap_host\}INBOX "
 #set PopImap_fetch_command {fetch-mailbox.sh}

#########################################################################
# Telnet button
#
AddButton Merv -imagefile $images/terminal -text "Telnet" \
	   -unixcmd { rxvt -T Merv -e telnet }
#
##########################################################################

#########################################################################
# Weather button
#
AddButton Weather -text Weather -unixcmd {
   rxvt -T Weather -e telnet downwind.sprl.umich.edu 3000
}	  
#
##########################################################################

##########################################################################
# A shutdown button with a cute sign-off:
# This relies on not having any root password (remember, this is for a
# home system!).
#
AddButton Shutdown -imagefile $images/xlogo16 -text "Shut\nDown" -tclcmd {
    TKGButton Shutdown -text BYE!\
	-tkgforeground(normal) yellow \
	-tkgforeground(active) yellow
  update
  exec su -c "/sbin/shutdown -h -t 6 now &> /dev/tty1" &
}
#
##########################################################################

# Ical (alarm daemon, item lister, etc., using ical calendar file).
Client Ical

DEBUG "Loaded .tkgoodstuffrc"
