vin_petrol: (Default)
[personal profile] vin_petrol
Odd 'X' question today that someone out there may be able to answer easily.

I want something that will display a window with some arbitrary text content in it. It really needs to support the "--geometry" option (or similar) so I can specify x, y and size. At the moment, I've got a slightly clunky solution which looks something like:

gnome-terminal --geometry 40x10+100+100 --hide-menubar --window-with-profile=monitor --command='/bin/sh -c "echo \"If you can see this the Discovery Channel stream may be broken\" ; read"'

Which mostly does the trick, but feels rather clunky. Plus, I would really like to be able to specify the actual window size in pixels rather than rows and columns (as each VLC Media Player window is configured with "--width" and "--height").

I'm really looking for something like:

x<something> --height HHH --width WWW --xpos XXX --ypos YYY --font Something --point-size PP --text "Something to display"

Why am I doing this? I've got a "wall of videos" application that's displaying a whole load of streaming media in VLC Media Player windows. The streams sometimes die, and it would be useful to display a text window 'behind' the window showing the streaming video. Then, if video disappears you'll see a text window that says something like "please check the Sky One stream".

The size and position of the video windows is all easily reconfigurable, and the whole "wall" can easily be started and stopped with new parameters, so I need commands I can run as part of this process.

Yeh, this can and is being monitored in other ways too: this is a handy way to get editorial staff to go round to the support staff who *should* be responding to emails about broken streams and poke them and go "what are you doing about the Sky One broken stream" :-)

I've got this horrible feeling I'm missing something really obvious...

It's a Red Hat Enterprise Linux install (RHEL 4, IIRC) but I can easily add stuff and compile from source if necessary.

EDIT: Solved! Big thanks to [livejournal.com profile] daeghnao, who pointed me in the direction of xmessage, which does exactly what I need.
Date: 2006-12-05 06:42 pm (UTC)

From: [identity profile] skinfitz.livejournal.com
Wallpaper.
Date: 2006-12-06 10:32 am (UTC)

From: [identity profile] skinfitz.livejournal.com
I see - looks interesting - I'm wondering what is the purpose of your 'wall of video'? Just to be able to watch lots of channels at once? ;)
Date: 2006-12-05 08:30 pm (UTC)

From: [identity profile] steer.livejournal.com
That is astoundingly clunky. Better surely to email the staff member in question if the app is not running? Launch each from a script which takes the streamname, display location and the email of the responsible person as a thing.

You could generate huge images of what you want to say and use "display" from imagemagick. Imagemagick has loads of good stuff in it anyway. There are various text2gif tools to generate the huge image!
Date: 2006-12-06 10:28 am (UTC)

From: [identity profile] steer.livejournal.com
Ah... didn't know that one!
Date: 2006-12-05 10:28 pm (UTC)

From: [identity profile] daeghnao.livejournal.com
I _know_ there's a program that draws text on the root window for you, I've used it before. It might have been on the hard drive that crashed, though. But it would probably be better to pop up an xmessage in the right location when the stream dies instead - I'm assuming VLC exits when the stream dies, in which case you can just follow it with the relevant xmessage. You could even have different buttons for restarting, emailing a note or just ignoring.
Date: 2006-12-05 11:25 pm (UTC)

From: [identity profile] minusbat.livejournal.com
Did you not get the email I sent via 'social' ? Link to some source in there which does morre or leess what you want, and can be easily adaopted if not. Assuming you can stuill remember how to actually code :-)

Profile

vin_petrol: (Default)
vin_petrol

February 2013

S M T W T F S
     12
345 6789
10111213141516
17181920212223
2425262728  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 5th, 2026 01:21 pm
Powered by Dreamwidth Studios