https://github.com/atheme/libaosd
an on screen display tool which uses libaosd
aosd_cat is an advanced on screen display tool based on libaosd. It can be used for OSD-style notifications in shell scripts.
Quote:
libaosd is an advanced on screen display library. It supports many modern features like anti-aliased text and composited rendering via XComposite, as well as support for rendering Cairo and Pango layouts.
|
Included is one script that expects a single "string" argument (ideally)
like:
/mnt/us/extensions/aosd_cat/bin/say.sh "how about some OSD overkill"
OR
call it direct (this example "spend a long time reading logs...")
Code:
export LD_LIBRARY_PATH=/mnt/us/extensions/aosd_cat/lib:$LD_LIBRARY_PATH
## Optionally do some visual tweaks, the defaults a bit ugly
export OPTIONS="\
-R white --y-offset=-15 --fade-in=10 --fade-out=20 \
--shadow-color=black -B black --back-opacity=192 \
--shadow-opacity=255 --shadow-offset=1 \
--padding=5 --x-offset=5 --fade-full=6000 "
cat /var/log/messages | /mnt/us/extensions/aosd_cat/bin/aosd_cat "$OPTIONS" -
The following example is helpful in certain situations.
Real Time log viewing oneliner
showlog -f | LD_LIBRARY_PATH=/mnt/us/extensions/aosd_cat/lib:LD_LIBRARY_PATH /mnt/us/extensions/aosd_cat/bin/aosd_cat -R white --y-offset=-15 --fade-in=0 --fade-out=00 --shadow-color=black -B black --back-opacity=192
--shadow-opacity=255 --shadow-offset=1 --padding=5 --x-offset=5 --fade-full=3000 -
This dummy extension presents no KUAL menu entry by design.
Enjoy
random google example of it actually being played with
http://crunchbang.org/forums/viewtopic.php?id=4994