You are not logged in.

#1 2007-02-25 17:43:07

kamagurka
Member
From: Munich, Germany
Registered: 2006-02-20
Posts: 150
Website

OSD clock displayed on remote button press - Solved

I would like a way to have A fairly large OSD clock show up on my screen when I press a remote button; I figured xosd would contain a simple binary that would allow me to just put the output of date on the screen, but no joy. Googling found no simple, simple bin that would do that.
Does anyone know of something that will simply slap any output on the screen via OSD?

EDIT: I just found osd_cat, but it appears that only reads files. Do I actually need to write a script that echos date into a file that I can then read out or is there a simpler way to do this?

EDIT 2: I solved it. I found out that osd_cat will display the output of a command if the output is piped to it.
So now I'm having irexec execute this command on the press of a button:

date | osd_cat -d 5 -A center -p middle -f "-misc-fixed-bold-r-normal-*-45-*-*-100-*-*-*-*" -O 5

It doesn't look very pretty because the font isn't anti-aliased, but it does the job.

Last edited by kamagurka (2007-02-25 19:54:31)


I always roll 20s on my disbelieve checks.
You better believe it.

Offline

Board footer

Powered by FluxBB