XBIFF(1)
โจ 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 ๐-updateseconds โ sets how often (in seconds)xbiffrefreshes its display. heads up tho: if the mailbox gets obscured and then exposed again, it updates immediately regardless. the default is30seconds.-filefilename โ 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 theMAILenvironment variable is set, the file it specifies is the one that gets monitored instead. ๐-volumepercentage โ how loud the bell rings when new mail shows up. the percentage is relative to the current volume inxset. so0is normal volume, negative percentages head towards minimum (-100is silent ๐คซ), and positive percentages head towards maximum volume (100is 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:
-displaydisplay โ which X server to contact.-geometrygeometry โ the preferred size and position of the mailbox window. the mailbox itself is48pixels wide and48pixels high, and it'll be centered in the window.-bgcolor โ the color for the background of the window.-bdcolor โ the color for the border of the window.-bwnumber โ the width in pixels of the border surrounding the window.-fgcolor โ the color for the foreground of the window.-rvโ simulates reverse video by swapping the foreground and background colors. ๐-xrmresourcestring โ 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(classCheckCommand) โ 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 asystem(3)call, which means it may therefore contain i/o redirection. exit status meanings:0means new mail is waiting,1means there's been no change in size, and2means the mail has been cleared. by default, no shell command is provided.file(classFile) โ the name of the file to monitor. the default is exactly what we described above for the-filecommand line option.onceOnly(classBoolean) โ 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 isfalse.width(classWidth) โ the width of the mailbox.height(classHeight) โ the height of the mailbox.update(classInterval) โ how often, in seconds, the mail gets checked. the default is30.volume(classVolume) โ how loud the bell rings. the default is33percent. note that this is a percentage of the currentxsetvolume, so to reduce the volume you specify a negative percentage.foreground(classForeground) โ the color for the foreground.reverseVideo(classReverseVideo) โ says the foreground and background should be reversed.flip(classFlip) โ whether or not the image shown when mail has arrived should be inverted. the default is ``true.''fullPixmap(classPixmap) โ a bitmap to show when new mail has arrived. the default isflagup.emptyPixmap(classPixmap) โ a bitmap to show when no new mail is present. the default isflagdown.shapeWindow(classShapeWindow) โ whether or not the mailbox window should be shaped to the givenfullPixmapMaskandemptyPixmapMask. the default isfalse.fullPixmapMask(classPixmapMask) โ a mask for the bitmap shown when new mail has arrived. the default isnone.emptyPixmapMask(classPixmapMask) โ a mask for the bitmap shown when no new mail is present. the default isnone.
๐ 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 theRESOURCE_MANAGERproperty.
๐ SEE ALSO ๐
๐ 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
- debian bookworm: x11-apps 7.7+9
- debian trixie: x11-apps 7.7+11+b1
- ubuntu jammy: x11-apps 7.7+8build2
- ubuntu noble: x11-apps 7.7+11build3
- ubuntu questing: x11-apps 7.7+11build3
- ubuntu resolute: x11-apps 7.7+11build4
- ubuntu stonking: x11-apps 7.7+11build4
- Copyright (c) 1988 X Consortium
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms