The Dhammapada is an anthology of 423 verses from the Kuddaka Nikaya
part of the Theravada Pali Canon. It contains Buddhist ethical and
spiritual precepts. One of the translations is by John Richards; the
other is an older translation by F. Max Muller. Polish translation is
by Zbigniew Becker.
display-dhammapada
prints to the standard output.
xdhamma
prints using
xmessage
on an X Window screen, or in bold using
tputs
on a text terminal.
EXAMPLES
To display a verse each time you log in on a terminal, put
display-dhammapada
or
xdhamma
in your
~/.profile,
~/.bash_profile
or
~/.login,
as appropriate for your shell.
To display a verse each time you log in on X Window, put
xdhamma
in your
~/.xsession.
KDE 2.1 has "amor" toy that can display various tips. To use the dhammapada for that enter these commands at shell prompt:
mkdir ~/.kde/share/apps/amor
display-dhammapada -r all |perl -0777 -pe 's/\n\s*\n\s*\n/\n%\n/g' >~/.kde/share/apps/amor/tips
Then start amor K->Toys->Amor, right click on amor animation, select "Options" and select "Allow application tips" and "Show random tips".
Use
gtk-dhammapada
to display verse in GTK window.
To automatically attach Dhammapada verse in e-mail footer. To do this in
mutt
add
set signature=display-dhammapada|
in your
~/.muttrc
file.