XBIFF(1)

๐Ÿ“ฆ
version 7.7+11build4 ยท 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

โœจ XBIFF(1) โ€” the mailbox flag page, bestie edition โœจ

okay so you opened the manual for xbiff, from the General Commands Manual section (section 1, the commands one, iykyk). sit down, grab a snack ๐Ÿ“, we're doing this together.


๐ŸŒธ NAME ๐ŸŒธ

xbiff โ€” a mailbox flag, but for X ๐Ÿ’Œ


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

xbiff [ -toolkitoption ... ] [ -option ... ]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

so xbiff literally just shows you a lil image of a mailbox. that's the whole vibe. ๐Ÿ“ฌ

when there's no mail? the flag on the mailbox is down. when mail arrives? the flag goes up and the mailbox beeps. iconic behavior, honestly.

and by default, if you press any mouse button while you're hovering on the image, that forces xbiff to remember the current size of the mail file as being the ``empty'' size, and it lowers the flag. so basically you're telling it "okay bestie, we're caught up now, chill." ๐Ÿซถ


๐Ÿ’… OPTIONS ๐Ÿ’…

Xbiff accepts all of the standard X Toolkit command line options, plus these extra ones below. slay.

  • -help โ€” prints a brief summary of the allowed options over on the standard error. little cheat sheet moment ๐Ÿ“
  • -update seconds โ€” sets how often (in seconds) xbiff refreshes its display. heads up tho: if the mailbox gets obscured and then exposed again, it updates immediately regardless. the default is 30 seconds.
  • -file filename โ€” names the file that should be monitored. by default it watches your inbox in whatever the default location is for your system (some examples: /var/mail/username, /usr/spool/mail/username, /var/spool/mail/username, where username is your login name). and if the MAIL environment variable is set, the file it specifies is the one that gets monitored instead. ๐Ÿ‘€
  • -volume percentage โ€” how loud the bell rings when new mail shows up. the percentage is relative to the current volume in xset. so 0 is normal volume, negative percentages head towards minimum (-100 is silent ๐Ÿคซ), and positive percentages head towards maximum volume (100 is loudest ๐Ÿ”ฅ).
  • -shape โ€” says the mailbox window should be shaped, if masks for the empty or full images are given.

๐ŸŽ€ the standard X Toolkit args you'll actually use ๐ŸŽ€

these are the standard X Toolkit command line arguments that people commonly use with xbiff:

  • -display display โ€” which X server to contact.
  • -geometry geometry โ€” the preferred size and position of the mailbox window. the mailbox itself is 48 pixels wide and 48 pixels high, and it'll be centered in the window.
  • -bg color โ€” the color for the background of the window.
  • -bd color โ€” the color for the border of the window.
  • -bw number โ€” the width in pixels of the border surrounding the window.
  • -fg color โ€” the color for the foreground of the window.
  • -rv โ€” simulates reverse video by swapping the foreground and background colors. ๐Ÿ”„
  • -xrm resourcestring โ€” a resource string to be used. this one is especially useful for setting resources that don't have their own separate command line options. sneaky and powerful, we love her.

๐Ÿ‘‘ X DEFAULTS ๐Ÿ‘‘

the application class name is XBiff. this program uses the Mailbox widget. it understands all of the core resource names and classes, plus these:

  • checkCommand (class CheckCommand) โ€” a shell command to run to check for new mail, instead of just examining the size of the file. the string value you give gets used as the argument to a system(3) call, which means it may therefore contain i/o redirection. exit status meanings: 0 means new mail is waiting, 1 means there's been no change in size, and 2 means the mail has been cleared. by default, no shell command is provided.
  • file (class File) โ€” the name of the file to monitor. the default is exactly what we described above for the -file command line option.
  • onceOnly (class Boolean) โ€” says the bell only rings the first time new mail is found, and doesn't ring again until at least one interval has passed with no mail waiting. the window will keep showing that new mail is there until it's been retrieved. the default is false.
  • width (class Width) โ€” the width of the mailbox.
  • height (class Height) โ€” the height of the mailbox.
  • update (class Interval) โ€” how often, in seconds, the mail gets checked. the default is 30.
  • volume (class Volume) โ€” how loud the bell rings. the default is 33 percent. note that this is a percentage of the current xset volume, so to reduce the volume you specify a negative percentage.
  • foreground (class Foreground) โ€” the color for the foreground.
  • reverseVideo (class ReverseVideo) โ€” says the foreground and background should be reversed.
  • flip (class Flip) โ€” whether or not the image shown when mail has arrived should be inverted. the default is ``true.''
  • fullPixmap (class Pixmap) โ€” a bitmap to show when new mail has arrived. the default is flagup.
  • emptyPixmap (class Pixmap) โ€” a bitmap to show when no new mail is present. the default is flagdown.
  • shapeWindow (class ShapeWindow) โ€” whether or not the mailbox window should be shaped to the given fullPixmapMask and emptyPixmapMask. the default is false.
  • fullPixmapMask (class PixmapMask) โ€” a mask for the bitmap shown when new mail has arrived. the default is none.
  • emptyPixmapMask (class PixmapMask) โ€” a mask for the bitmap shown when no new mail is present. the default is none.

๐ŸŒˆ ACTIONS ๐ŸŒˆ

the Mailbox widget gives you these actions to use in event translations:

  • check() โ€” makes the widget check for new mail and display the flag appropriately. ๐Ÿ”
  • unset() โ€” makes the widget lower the flag until new mail comes in.
  • set() โ€” makes the widget raise the flag until the user resets it.

and the default translation is:

<ButtonPress>:  unset()

๐Ÿงš ENVIRONMENT ๐Ÿงš

  • DISPLAY โ€” to get the default host and display number.
  • XENVIRONMENT โ€” to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.

๐ŸŽ€ SEE ALSO ๐ŸŽ€

X(7), xrdb(1), stat(2)


๐Ÿ’€ BUGS ๐Ÿ’€

the mailbox bitmaps are ugly. ๐Ÿ˜ญ not me saying it, the manpage said it. we're just the messenger.

๐ŸŒŸ AUTHOR ๐ŸŒŸ

Jim Fulton, MIT X Consortium Additional hacks by Ralph Swick, DEC/MIT Project Athena


okay that's the whole page bestie, you're officially certified in xbiff ๐Ÿ’… this was X Version 11, xbiff 1.0.4, and yeah, we're all gonna pretend those bitmaps are fine. periodt. ๐Ÿ‘‘โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from