Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-18-2013, 06: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,552
Karma: 6021146
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:	99
Size:	20.2 KB
ID:	111412   Click image for larger version

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

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

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

Last edited by twobob; 09-18-2013 at 07:06 AM.
twobob is offline   Reply With Quote
Old 09-18-2013, 06:36 AM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 5,131
Karma: 5019835
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
Muahahahaha. I like it .
NiLuJe is offline   Reply With Quote
 
Advertisement
Old 09-18-2013, 09:38 AM   #3
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,852
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Makes a nice little grayscale "alert box" - -
I might be able to offer that output as an option in some of my report generating buttons.

Much easier (for me) to read than the current USBnetwork status report line.
knc1 is offline   Reply With Quote
Old 09-18-2013, 10:03 AM   #4
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,852
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by twobob View Post
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 -
Note: The command line length in Ash may be only 8,191 characters.
knc1 is offline   Reply With Quote
Reply

Tags
kindle., osd, twobob

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
K5 osdsh - an OSD thingy... twobob Kindle Developer's Corner 18 10-04-2013 04:27 PM
Kindle cover meta thingy? JimmyG Sigil 3 04-25-2013 10:39 AM
Anny One -- a sexy sci-fi thingy Annie Seixas Self-Promotions by Authors and Publishers 1 02-18-2012 03:41 PM
How to show windows7 OSD keyboard on text-field? giapage Calibre 0 01-30-2012 09:46 AM
Mac OS X lit2rtf AppleScript thingy FourOhFour Sony Reader 11 08-11-2007 01:02 AM


All times are GMT -4. The time now is 02:58 PM.


MobileRead.com is a privately owned, operated and funded community.