To do this, I just used the standard launcher from XFCE. Clicked right and added the launcher. Then I changed the properties and added different programs. As I already had the images, I could just add the images.
As the command I would use the following settings for e.g. BBC2
Name : BBC2 Description : BBC Two Icon : The BB2 icon Command : ivtv-tune --device=/dev/video0 -teurope-west -f 711.25 Working directory : defauly Run in Terminal : blank Use startup notification : BlankThe image below is an example of how this might look
On the left is the taskbar. By clicking on the arrow pointing to the right, you see the idems in the middle. By clicking right on the arrow and selecting options, you see the different things in the launcher and details on one of them. It should not be to hard to realize that the comand can be anything you want.
So now I have the changing of channels at my disposal all the time. I also added a small script that lauched MPlayer.
#!/bin/bash
#mplayer tv starter
#set -x
START ()
{
ivtv-tune --device=/dev/video0 -teurope-west -f 245.25
CHAN="Vijf TV"
}
FREQ=`/usr/bin/v4l2-ctl -F|awk -F\( '{print \$NF}'|awk -F. '{print \$1}'`
case "$FREQ" in
495) CHAN="VRT Een";;
615) CHAN="Canvas/Ketnet";;
479) CHAN="VTM";;
487) CHAN="2 be";;
245) CHAN="VT4";;
182) CHAN="Vijf TV";; #Not on tvgids.nl
259) CHAN="BBC One";;
711) CHAN="BBC Two";;
463) CHAN="Discovery Channel";;
189) CHAN="National Geographic";;
719) CHAN="Vitaya";;
*) START;;
esac
kdialog --title="Starting TV" --passivepopup "Going to watch $CHAN" 10 &
DISPLAY=:0.2 gmplayer -fs -vf crop=700:420 /dev/video0
So what this does is first look what the frequency is that is used now with v4l2-ctl. If it is one of my standard channels, it will just run and launch. If not, then it will launch a pre-defined channel. The reason is that in this way I won't look at snow.
© 2005 - 2013
by
houghi.
Copyright explanation will be online on
May 27, 2013