dotfiles/scripts/scrcpy-autostart

13 lines
144 B
Bash
Executable File

#!/bin/bash
while true; do
if [ -L /dev/android_adb ]
then
scrcpy --turn-screen-off --stay-awake & sndcpy
else
adb wait-for-device
fi
done