View Single Post
Old 09-18-2013, 05:19 AM   #1
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Post aOSD_cat OSD thingy.

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
Attached Thumbnails
Click image for larger version

Name:	Selection_643.png
Views:	497
Size:	20.2 KB
ID:	111412   Click image for larger version

Name:	Selection_646.png
Views:	483
Size:	33.4 KB
ID:	111414   Click image for larger version

Name:	Selection_647.png
Views:	437
Size:	36.5 KB
ID:	111415   Click image for larger version

Name:	Selection_648.png
Views:	468
Size:	33.6 KB
ID:	111416  
Attached Files
File Type: zip aOSDcat-server-KUAL.zip (433.1 KB, 206 views)

Last edited by twobob; 09-18-2013 at 06:06 AM.
twobob is offline   Reply With Quote