Wait fdr X-touch mini to be connected

This commit is contained in:
Jafner 2021-11-15 19:57:21 -08:00
parent 6a7b64ccbb
commit 3c3aa125bf

View File

@ -39,10 +39,16 @@ initialize(){
echo "xdotool found" echo "xdotool found"
fi fi
echo "Waiting for pulseaudio service to start..." echo "Waiting for pulseaudio service to start..."
while [ ! $(systemctl --machine=joey@.host --user status pamidi.service) ]; do while [[ $(systemctl --machine=joey@.host --user is-active --quiet pulseaudio) ]]; do
echo "Pulseaudio service not started, waiting..." echo "Pulseaudio service not started, waiting..."
sleep 2 sleep 2
done done
echo "Waiting for X-TOUCH MINI to be connected..."
while [[ ! $(lsusb | grep "X-TOUCH MINI") ]]
do
echo "X-TOUCH MINI not connected. Waiting..."
sleep 2
done
col_1_app_pid=-1 col_1_app_pid=-1
col_2_app_pid=-1 col_2_app_pid=-1
col_3_app_pid=-1 col_3_app_pid=-1