User defined message

You can send any text message to larswm, and it will be displayed on the status bar. Please note that only the first 100 characters of the message will be shown.

Example 5-1. Hello World on the status bar


# Send message to larswm
larswm message "Hello World"

# Wait 5 seconds
sleep 5

# Clear the message
larswm message

# Done!
exit 0

This feature is intended to provide such things as date and time, new mail notification and other information that is small enough to fit in this location. Please see the file sample.barinfo in the source tarball (or the documentation directory if you installed the RPM) for an example of a clock and stock ticker application.