xalarm is an interactive alarm clock for the X(1) Window System, and is analogous to a combination of leave(1) and calendar(1), but much more powerful. You can set the alarm either on the command line or by using the popup window. At the appropriate time and date, xalarm pops up a window to tell you that your time is up. The time the alarm is to trigger may be a specific time or a time for xalarm to wait before triggering. The date may be a specific date or a number of days in the future.
ftp://ftp.x.org/contrib/utilities/xalarm.README ftp://ftp.x.org/contrib/utilities/xalarm-3.06.tar.gz
Edit Imakefile
Add -DFORKRETURNSPID_T to DEFINES:
DEFINES = ... -DFORKRETURNSPID_T
build
$ xmkmf imake -DUseInstalled -I/opt/gnu/lib/X11/config
make depend make
Install
have to make change to overide -I/opt/gnu/lib/X11/config
export DESTDIR='/home/users/tongsun/local' export BINDIR=bin export MANDIR=man export LIBDIR=lib export XAPPLOADDIR=xappload # ?? what's this?
make -n install -- still don't seems good
put the contents of XAlarm.ad and XAlarm.ad+ in your ~/.Xdefaults file.
cat XAlarm.ad XAlarm.ad+ > ~/.Xdefaults
cp xalarm xfortune xmemo ~/local/bin/.
— xmemo is required by xfortune
/usr/ucb/install -c -m 0444 xalarm.man /home/users/tongsun/local/man/man1/xalarm.1x
The following in absolutely optional: The just setup links to xalarm.1x.
echo ".so man"`echo 1x`"/xalarm."`echo 1x` > xmemo.man /usr/ucb/install -c -m 0444 xmemo.man /home/users/tongsun/local/man/man1/xmemo.1x echo ".so man"`echo 1x`"/xalarm."`echo 1x` > xfortune.man /usr/ucb/install -c -m 0444 xfortune.man /home/users/tongsun/local/man/man1/xfortune.1x echo ".so man"`echo 1x`"/xalarm."`echo 1x` > xyow.man /usr/ucb/install -c -m 0444 xyow.man /home/users/tongsun/local/man/man1/xyow.1x