--- /dev/null
+#!/bin/bash
+
+exec 3<> /dev/tcp/vapier/8001
+send() { echo "$*" 1>&3 ; }
+recv() { local l; read l <&3; echo ${l%$'\r'} ; }
+
+case $1 in
+f|fullscreen)
+ send f $2
+ ;;
+help)
+ send $1
+ cat <&3
+ ;;
+pause|quit)
+ send $1
+ ;;
+vol)
+ shift
+ send vol$*
+ ;;
+seek)
+ off=( 0 5 15 30 60 )
+ [[ -z $2 || -n ${2//[-+]} ]] && exit 0
+ off=${off[${#2}]}
+ send get_time
+ curr=$(recv)
+ send seek $(( curr ${2:0:1} off ))
+ ;;
+*)
+ send "$@"
+ ;;
+esac
+
+exit 0