xbiff.man 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. .\" $XConsortium: xbiff.man,v 1.22 94/04/17 20:43:28 gildea Exp $
  2. .\" Copyright (c) 1988 X Consortium
  3. .\"
  4. .\" Permission is hereby granted, free of charge, to any person obtaining
  5. .\" a copy of this software and associated documentation files (the
  6. .\" "Software"), to deal in the Software without restriction, including
  7. .\" without limitation the rights to use, copy, modify, merge, publish,
  8. .\" distribute, sublicense, and/or sell copies of the Software, and to
  9. .\" permit persons to whom the Software is furnished to do so, subject to
  10. .\" the following conditions:
  11. .\"
  12. .\" The above copyright notice and this permission notice shall be included
  13. .\" in all copies or substantial portions of the Software.
  14. .\"
  15. .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  16. .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  17. .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  18. .\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
  19. .\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  20. .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  21. .\" OTHER DEALINGS IN THE SOFTWARE.
  22. .\"
  23. .\" Except as contained in this notice, the name of the X Consortium shall
  24. .\" not be used in advertising or otherwise to promote the sale, use or
  25. .\" other dealings in this Software without prior written authorization
  26. .\" from the X Consortium.
  27. .\"
  28. .\" $XFree86: xc/programs/xbiff/xbiff.man,v 1.3 2001/01/27 18:21:08 dawes Exp $
  29. .\"
  30. .TH XBIFF 1 __xorgversion__
  31. .SH NAME
  32. xbiff \- mailbox flag for X
  33. .SH SYNOPSIS
  34. .B xbiff
  35. [ \-\fItoolkitoption\fP ... ] [ \fI\-option\fP ... ]
  36. .SH DESCRIPTION
  37. The
  38. .I xbiff
  39. program displays a little image of a mailbox. When there is no mail,
  40. the flag on the mailbox is down. When mail arrives, the flag goes up
  41. and the mailbox beeps. By default, pressing any mouse button in the
  42. image forces \fIxbiff\fP to remember the current size of the mail file
  43. as being the ``empty'' size and to lower the flag.
  44. .SH OPTIONS
  45. .I Xbiff
  46. accepts all of the standard X Toolkit command line options along with the
  47. additional options listed below:
  48. .TP 8
  49. .B \-help
  50. This option indicates that a brief summary of the allowed options should be
  51. printed on the standard error.
  52. .TP 8
  53. .B \-update \fIseconds\fP
  54. This option specifies the frequency in seconds at which \fIxbiff\fP
  55. should update its display. If the mailbox is obscured and then exposed,
  56. it will be updated immediately. The default is 30 seconds.
  57. .TP 8
  58. .B \-file \fIfilename\fP
  59. This option specifies the name of the file which should be monitored. By
  60. default it watches your inbox in the default location for your
  61. system (some examples are
  62. .RI /var/mail/ username ,
  63. .RI /usr/spool/mail/ username ,
  64. .RI /var/spool/mail/ username
  65. (where
  66. .I username
  67. is your login name). If the MAIL environment variable is set,
  68. the file specified by it will be monitored.
  69. .TP 8
  70. .B \-volume \fIpercentage\fP
  71. This option specifies how loud the bell should be rung when new mail comes in.
  72. .TP 8
  73. .B \-shape
  74. This option indicates that the mailbox window should be shaped if masks for
  75. the empty or full images are given.
  76. .PP
  77. The following standard X Toolkit command line arguments are commonly used with
  78. .I xbiff:
  79. .TP 8
  80. .B \-display \fIdisplay\fP
  81. This option specifies the X server to contact.
  82. .TP 8
  83. .B \-geometry \fIgeometry\fP
  84. This option specifies the preferred size and position of the mailbox window.
  85. The mailbox is 48 pixels wide and 48 pixels high and will be centered in
  86. the window.
  87. .TP 8
  88. .B \-bg \fIcolor\fP
  89. This option specifies the color to use for the background of the window.
  90. .TP 8
  91. .B \-bd \fIcolor\fP
  92. This option specifies the color to use for the border of the window.
  93. .TP 8
  94. .B \-bw \fInumber\fP
  95. This option specifies the width in pixels of the border surrounding the window.
  96. .TP 8
  97. .B \-fg \fIcolor\fP
  98. This option specifies the color to use for the foreground of the window.
  99. .TP 8
  100. .B \-rv
  101. This option indicates that reverse video should be simulated by swapping
  102. the foreground and background colors.
  103. .TP 8
  104. .B \-xrm \fIresourcestring\fP
  105. This option specifies a resource string to be used. This is especially
  106. useful for setting resources that do not have separate command line options.
  107. .SH X DEFAULTS
  108. The application class name is XBiff.
  109. This program uses the
  110. .I Mailbox
  111. widget.
  112. It understands all of the core resource names and
  113. classes as well as:
  114. .PP
  115. .TP 8
  116. .B checkCommand (\fPclass\fB CheckCommand)
  117. Specifies a shell command to be executed to check for new mail rather than
  118. examining the size of \fBfile\fP. The specified string value is used as the
  119. argument to a \fIsystem\fP(__libmansuffix__) call and may therefore contain i/o redirection.
  120. An exit status of 0 indicates that new mail is waiting, 1 indicates that there
  121. has been no change in size, and 2 indicates that the mail has been cleared.
  122. By default, no shell command is provided.
  123. .TP 8
  124. .B file (\fPclass\fB File)
  125. Specifies the name of the file to monitor. The default is as described
  126. above for the
  127. .B \-file
  128. command line option.
  129. .TP 8
  130. .B onceOnly (\fPclass\fB Boolean)
  131. Specifies that the bell is only rung the first time new mail is found
  132. and is not rung again until at least one interval has passed with
  133. no mail waiting. The window will continue to indicate the presence
  134. of new mail until it has been retrieved. The default is false.
  135. .TP 8
  136. .B width (\fPclass\fB Width)
  137. Specifies the width of the mailbox.
  138. .TP 8
  139. .B height (\fPclass\fB Height)
  140. Specifies the height of the mailbox.
  141. .TP 8
  142. .B update (\fPclass\fB Interval)
  143. Specifies the frequency in seconds at which the mail should be checked.
  144. The default is 30.
  145. .TP 8
  146. .B volume (\fPclass\fB Volume)
  147. Specifies how loud the bell should be rung. The default is 33 percent.
  148. .TP 8
  149. .B foreground (\fPclass\fB Foreground)
  150. Specifies the color for the foreground.
  151. .TP 8
  152. .B reverseVideo (\fPclass\fB ReverseVideo)
  153. Specifies that the foreground and background should be reversed.
  154. .TP 8
  155. .B flip (\fPclass\fB Flip)
  156. Specifies whether or not the image that is shown when mail has arrived
  157. should be inverted. The default is ``true.''
  158. .TP 8
  159. .B fullPixmap (\fPclass\fB Pixmap)
  160. Specifies a bitmap to be shown when new mail has arrived.
  161. The default is flagup.
  162. .TP 8
  163. .B emptyPixmap (\fPclass\fB Pixmap)
  164. Specifies a bitmap to be shown when no new mail is present.
  165. The default is flagdown.
  166. .TP 8
  167. .B shapeWindow (\fPclass\fB ShapeWindow)
  168. Specifies whether or not the mailbox window should be shaped to the
  169. given fullPixmapMask and emptyPixmapMask. The default is false.
  170. .TP 8
  171. .B fullPixmapMask (\fPclass\fB PixmapMask)
  172. Specifies a mask for the bitmap to be shown when new mail has arrived.
  173. The default is none.
  174. .TP 8
  175. .B emptyPixmapMask (\fPclass\fB PixmapMask)
  176. Specifies a mask for the bitmap to be shown when no new mail is present.
  177. The default is none.
  178. .SH ACTIONS
  179. The \fIMailbox\fP widget provides the following actions for use in event
  180. translations:
  181. .TP 8
  182. .B check()
  183. This action causes the widget to check for new mail and display the flag
  184. appropriately.
  185. .TP 8
  186. .B unset()
  187. This action causes the widget to lower the flag until new mail comes in.
  188. .TP 8
  189. .B set()
  190. This action causes the widget to raise the flag until the user resets it.
  191. .PP
  192. The default translation is
  193. .sp
  194. .nf
  195. <ButtonPress>: unset()
  196. .fi
  197. .sp
  198. .SH ENVIRONMENT
  199. .PP
  200. .TP 8
  201. .B DISPLAY
  202. to get the default host and display number.
  203. .TP 8
  204. .B XENVIRONMENT
  205. to get the name of a resource file that overrides the global resources
  206. stored in the RESOURCE_MANAGER property.
  207. .SH "SEE ALSO"
  208. X(__miscmansuffix__),
  209. xrdb(__appmansuffix__),
  210. stat(2)
  211. .SH BUGS
  212. The mailbox bitmaps are ugly.
  213. .SH AUTHOR
  214. Jim Fulton, MIT X Consortium
  215. .br
  216. Additional hacks by Ralph Swick, DEC/MIT Project Athena