#!/bin/bash

if lsusb | grep -q "04e8:68"
then
  scrcpy -dwS
else
  if ping -c 1 pogmommy-samsung-a54 &> /dev/null
  then
    scrcpy -wS --tcpip=pogmommy-samsung-a54
  else
    if ping -c 1 10.6.0.103 &> /dev/null
    then
      scrcpy -wS --tcpip=10.6.0.103
    else
      notify-send "phone not found"
    fi
  fi
fi
