cvlc --fullscreen --no-osd --zoom 10 $1/BootAnimation.mp4 &
play $1/output.wav &
sleep 2
winID=$(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}')
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xFFFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xFCFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xF9FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xF6FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xF3FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xF0FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xEDFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xEAFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xE7FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xE4FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xE1FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xDEFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xDBFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xD8FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xD5FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xD2FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xCFFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xCCFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xC9FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xC6FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xC3FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xC0FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xBDFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xBAFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xB7FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xB4FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xB1FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xAEFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xABFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xA8FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xA5FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0xA2FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x9FFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x9CFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x99FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x96FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x93FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x90FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x8DFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x8AFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x87FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x84FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x81FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x7EFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x7BFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x78FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x75FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x72FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x6FFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x6CFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x69FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x66FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x63FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x60FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x5DFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x5AFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x57FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x54FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x51FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x4EFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x4BFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x48FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x45FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x42FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x3FFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x3CFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x39FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x36FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x33FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x30FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x2DFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x2AFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x27FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x24FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x21FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x1EFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x1BFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x18FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x15FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x12FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x0FFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x0CFFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x09FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x06FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x03FFFFFF
sleep 0.1
xprop -id $(xwininfo -name "VLC media player" | grep "Window id" | awk '{split($0,a," "); print a[4]}') -format _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY 0x00FFFFFF

PID=$(ps aux | grep vlc | grep fullscreen | awk '{split($0,a," ");print a[2]}')
kill -9 $PID
