Skip to content

Commit b917189

Browse files
committed
Add Scrcpy to do Android screen mirroring
1 parent 3307018 commit b917189

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

applications/icons/Android.png

1.74 MB
Loading

bin/omakub-sub/install.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ CHOICES=(
1212
"OBS Studio Record screencasts with inputs from both display + webcam"
1313
"Ollama Run LLMs, like Meta's Llama3, locally"
1414
"RubyMine IntelliJ's commercial Ruby editor"
15+
"Scrcpy Android screen mirroring (requires dev mode / USB debug on!)"
1516
"Spotify Stream music from the world's most popular service"
1617
"Steam Play games from Valve's store"
1718
"VirtualBox Virtual machines to run Windows/Linux"
@@ -21,7 +22,7 @@ CHOICES=(
2122
"<< Back "
2223
)
2324

24-
CHOICE=$(gum choose "${CHOICES[@]}" --height 22 --header "Install application")
25+
CHOICE=$(gum choose "${CHOICES[@]}" --height 23 --header "Install application")
2526

2627
if [[ "$CHOICE" == "<< Back"* ]] || [[ -z "$CHOICE" ]]; then
2728
# Don't install anything
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Install dependencies
2+
sudo apt install -y ffmpeg libsdl2-2.0-0 adb wget \
3+
gcc git pkg-config meson ninja-build libsdl2-dev \
4+
libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \
5+
libswresample-dev libusb-1.0-0 libusb-1.0-0-dev
6+
7+
# Install latest Scrcpy straight from GitHub
8+
cd /tmp
9+
git clone https://github.com/Genymobile/scrcpy
10+
cd scrcpy
11+
./install_release.sh
12+
cd ..
13+
rm -rf scrcpy
14+
15+
cat <<EOF >~/.local/share/applications/Android.desktop
16+
[Desktop Entry]
17+
Version=1.0
18+
Name=Android
19+
Comment=Android Screen Mirroring
20+
Exec=scrcpy -S
21+
Terminal=false
22+
Type=Application
23+
Icon=/home/$USER/.local/share/omakub/applications/icons/Android.png
24+
Categories=GTK;
25+
StartupNotify=false
26+
EOF

0 commit comments

Comments
 (0)