dotfiles/de/home/.config/sway-profiles/global-shortcuts/scrcpy
2024-04-29 16:47:37 -06:00

18 lines
319 B
Bash
Executable file

#!/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