EXAMPLES
Give xmotd a geometry option to tell it to pop-up at a location
other than 0,0 and read-in the message-of-the-day from the file
/usr/local/motd:
xmotd -geometry +20+20 /usr/local/motd
Use a bigger window (900x600) and automatically position it (at
top-left corner at 20,20), always pop-up xmotd displaying the
contents of /usr/local/motd, ignoring the user's ~/.xmotd
timestamp-file and pop-down after 20 seconds:
xmotd -geom 900x600+20+20 -always -popdown 20 /usr/local/motd
Use a custom bitmap in the file /usr/local/xmotd.bm:
xmotd -geom +5+5 -bitmaplogo /usr/local/xmotd.bm /usr/local/motd
In the following example, all the files in /usr/local/messages/ will
be checked for modification times greater than the time-stamp and
only those files will be displayed and every eight and a half hours,
xmotd will check if any files have changed (or new ones added)
and display them if necessary:
xmotd -geom +5+5 -wakeup 8.5 /usr/local/messages/
To display a warning-message every time the user logs-in (even when
no messages need to be displayed), and to display the filenames of
the files being viewed, use:
xmotd -geom +5+5 -warnfile /usr/local/WARNING -paranoid \
-showfilename /usr/local/motds/
X resources may be changed from the command-line using the -xrm
option. This example (typed as a single line) illustrates how
xmotd can be customized exclusively from the command-line:
/usr/bin/xmotd -always \
-xrm "*title.label: Top 10 Disk Hogs\n As of midnight\n " \
-xrm "*title.foreground: yellow" \
-xrm "*form.background: red" \
-xrm "*title.background: red" \
-xrm "*logo.background: pink" \
-xrm "*text*font: -adobe-times-bold-*-normal-*-*-180-*" \
-geometry 500x650-1-1 \
-bitmaplogo /usr/common/choke.xbm
-popdown 10 \
/usr/common/accounting/top &