hi, i used fc-9 live-usb to make a media center laptop. the ingredients are:
zenity
xine
qjoypad
zen-vids.ksh:
Code:
#!/bin/bash
mount /media/hyper
zenity --info --text="mounting /media/hyper \nbuilding video list file \n \> /home/fedora/moo-vees.tmp \n\n please wait ..." & zenpid=$!
find /media/hyper -exec find-vids.ksh '{}' \; > ~/moo-vees.tmp
kill $zenpid
xine -f /usr/share/xine/skins/xine-ui_logo.mpv $(zenity --height=1000 --width=1000 --separator=" " --list --title vids --checklist --column="play" --column="moo-vee" --column="info" `sort moo-vees.tmp`)
find-vids.ksh:
Code:
#!/bin/bash
vid=`file $1 | awk -F : '{print $2}' | egrep "(AVI|ASF|MPEG)"`
if [ "$vid" ]
then
echo false $1 `file $1 | awk -F : '{print $2 " " $3 " " $4 " " $5}' | tr " " _`
fi
it basically mounts my hardrive on my pc upstairs via nfs.
then it looks for any avi, asf, mpeg
and lists them in a zenity checkbox
where i can select which vids i want to see.
____________________________________
optional:
i used my saitek p2500 gamepad to control the xine controls with qjoypad (map keypresses to play, stop, volume, next-vid...).
i used gconf-editor to set it up to launch the script when i hit the red button on my gamepad.
i mite add a yes/no question box asking the user if they want to update the moo-vee.lst (it takes
find about 2 minutes)