From 395490956aad18409af9fbeb6fffaafa2ef0398c Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 13 Sep 2022 09:53:53 +0300 Subject: [PATCH] Add function to connect to Feria --- bashrc.d/feria_scrcp_function | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 bashrc.d/feria_scrcp_function diff --git a/bashrc.d/feria_scrcp_function b/bashrc.d/feria_scrcp_function new file mode 100644 index 0000000..e0aa23e --- /dev/null +++ b/bashrc.d/feria_scrcp_function @@ -0,0 +1,6 @@ +#!/bin/bash +function feria_scrcpy() { + feria_mac='84:cf:bf:93:05:00' + feria_ip=$(arp -an | grep "${feria_mac}" | awk '{print($2)}' | sed 's/[\)\(]//g') + adb connect "${feria_ip}:5555" && scrcpy "--tcpip=${feria_ip}:5555" +} \ No newline at end of file