#!/bin/bash

#video="original.mp4"
video="test01.mp4"
#video="Marie-Laveau.mp4"

paht="/home/pi/Desktop"

tput civis # disable blink cursor
while true; do
	clear
	perl -e 'use POSIX; tcflush(0, TCIFLUSH);'  # clear buffer keyboard
	read -sn 1 input
	if [[ $input =~ [0-9] ]];then
		cvlc -f --play-and-exit --no-video-title home/pi/$video > /dev/null 2>&1
	fi
done

