[mythtv-users] fvwm2 as a Window Manager
usenet at wingert.org
usenet at wingert.org
Tue Mar 18 20:37:30 UTC 2003
Sure here goes. I installed Xdialog (http://www.chez.com/godefroy/) so I
could see that things were actually happening. Not a big deal for me,
but if the screen froze for my wife she would starting hitting buttons.
Trying to get stuff to work.
First I created a couple of scripts StartOgle and EjectCD
StartOgle looks like this:
#!/bin/sh
DIALOG=Xdialog
(
ogle -u cli &
echo "10" ; sleep 2
echo "20" ; sleep 2
echo "50" ; sleep 2
echo "75" ; sleep 2
echo "100" ; sleep 10
echo ""
) |
$DIALOG --title "Starting DVD" --guage "Please wait as I start the
DVD" 8 30
EjectCD looks like this:
#!/bin/sh
DIALOG=Xdialog
(
eject -r /dev/dvd
echo "XXXX"
) |
$DIALOG --title "Ejecting" --no-buttons --infobox "Ejecting DVD" 4
15 0
I made both of these executable and moved them to /bin
Next I created dvdmenu.xml containing this:
<mythmenu name="TV">
<button>
<type>DVD</type>
<text>Play</text>
<action>EXEC /bin/StartOgle</action>
</button>
<button>
<type>EJECT</type>
<text>Eject</text>
<action>EXEC /bin/EjectCD</action>
</button>
</mythmenu>
Finally I added this to my mainmenu.xml:
<button>
<type>DVD</type>
<text>DVD</text>
<action>MENU dvdmenu.xml</action>
</button>
Now I have a dvd option complete with little status windows. I can open
the CD tray, and start my DVD. The eject is important because the case
I'm buying hides the CD behind a spring loaded door.
Ben
-----Original Message-----
From: Joel Larsson [mailto:joel at rosafluffmoln.nu]
Sent: Monday, March 17, 2003 2:36 PM
To: ben at handcoder.com; Discussion about mythtv
Subject: Re: [mythtv-users] DVD in myth TV
Feel free to attach your configurations. I just added ogle myself and it
seems to work good but its always educating to look how someone else did
and see if I can improve my setup.
Cheers,
Joel
Ben Brown wrote:
>I've seen many people mention this, and I thought I'd make a quick
>post. If you want to be able to play DVD's from you mythtv, you might
>try just using a 3rd party piece of software and editing your
>menu.xml's. I've set this up on my myth box and it works great. I use
>ogle for DVD playback and have mapped the ogle key command to the one
>used by myth. Make a few XML changes, and now I have a DVD menu option
>that takes me to a screen with and eject and play button. I know for
>many of you this is old hat, but if you're a linux newbie, fear not it
>is easy to do and requires little work. If anyone is interested, I can
>go into more detail of how to do this stuff.
>
>Ben
>
>_______________________________________________
>mythtv-users mailing list
>mythtv-users at snowman.net
>http://www.snowman.net/mailman/listinfo/mythtv-users
>
>
More information about the mythtv-users
mailing list