Choose channel dialog

Following on from the last post about how I got my TV card working, here is a little script I wrote that allows me to choose a channel and start watching. It uses zenity for a rudimentary GUI:

$ cat bin/tv_choose_channel
awk -F ':' '{print $1}' < .mplayer/channels.conf  | \
    zenity --list --title "Choose Channel" \
    --text "Choose a TV channel to watch..." \
    --column "Channels" | xargs -IREP tv_watch "REP"

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.