From 86ac62be248baa455bd5a04a9d795708eb36d591 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Sat, 23 Sep 2023 14:07:57 -0700 Subject: [PATCH] feat: Add scrcpy to just and yafti --- .../deck/shared/usr/share/ublue-os/firstboot/yafti.yml | 5 +++++ .../shared/usr/share/ublue-os/just/30-distrobox.just | 9 +++++++++ .../shared/usr/share/ublue-os/firstboot/yafti.yml | 5 +++++ .../shared/usr/share/ublue-os/just/30-distrobox.just | 9 +++++++++ 4 files changed, 28 insertions(+) diff --git a/system_files/deck/shared/usr/share/ublue-os/firstboot/yafti.yml b/system_files/deck/shared/usr/share/ublue-os/firstboot/yafti.yml index b37930e4..438ffc94 100644 --- a/system_files/deck/shared/usr/share/ublue-os/firstboot/yafti.yml +++ b/system_files/deck/shared/usr/share/ublue-os/firstboot/yafti.yml @@ -81,6 +81,11 @@ screens: default: false packages: - Install Resilio Sync: just --unstable install-resilio-sync + scrcpy: + description: scrcpy provides display and control of Android devices connected on USB (or over TCP/IP) + default: false + packages: + - Install Resilio Sync: just --unstable install-scrcpy SteamCMD: description: Installs SteamCMD default: true diff --git a/system_files/deck/shared/usr/share/ublue-os/just/30-distrobox.just b/system_files/deck/shared/usr/share/ublue-os/just/30-distrobox.just index ec3902c0..a844e4ed 100644 --- a/system_files/deck/shared/usr/share/ublue-os/just/30-distrobox.just +++ b/system_files/deck/shared/usr/share/ublue-os/just/30-distrobox.just @@ -97,3 +97,12 @@ install-resilio-sync: rm -f ~/.config/systemd/user/fedora-resilio-sync.service && \ wget https://raw.githubusercontent.com/ublue-os/bazzite/main/post_install_files/resilio_sync/fedora-resilio-sync.service -O ~/.config/systemd/user/fedora-resilio-sync.service && \ systemctl enable --user --now fedora-resilio-sync.service + +# Install scrcpy, a utility that mirrors Android devices (video and audio) connected via USB or over TCP/IP +install-scrcpy: + if grep -qvz "fedora" <<< $(distrobox list); then \ + distrobox create --nvidia --image ghcr.io/ublue-os/fedora-distrobox:latest -n fedora -Y; \ + fi && \ + distrobox enter -n fedora -- bash -c 'sudo dnf copr enable -y zeno/scrcpy && \ + sudo dnf install -y scrcpy && \ + distrobox-export --app scrcpy' diff --git a/system_files/desktop/shared/usr/share/ublue-os/firstboot/yafti.yml b/system_files/desktop/shared/usr/share/ublue-os/firstboot/yafti.yml index 86c14b39..f2e20834 100644 --- a/system_files/desktop/shared/usr/share/ublue-os/firstboot/yafti.yml +++ b/system_files/desktop/shared/usr/share/ublue-os/firstboot/yafti.yml @@ -62,6 +62,11 @@ screens: default: false packages: - Install Resilio Sync: just --unstable install-resilio-sync + scrcpy: + description: scrcpy provides display and control of Android devices connected on USB (or over TCP/IP) + default: false + packages: + - Install Resilio Sync: just --unstable install-scrcpy amd-additions: source: yafti.screen.package values: diff --git a/system_files/desktop/shared/usr/share/ublue-os/just/30-distrobox.just b/system_files/desktop/shared/usr/share/ublue-os/just/30-distrobox.just index d276184b..a80961c9 100644 --- a/system_files/desktop/shared/usr/share/ublue-os/just/30-distrobox.just +++ b/system_files/desktop/shared/usr/share/ublue-os/just/30-distrobox.just @@ -134,3 +134,12 @@ install-resilio-sync: rm -f ~/.config/systemd/user/fedora-resilio-sync.service && \ wget https://raw.githubusercontent.com/ublue-os/bazzite/main/post_install_files/resilio_sync/fedora-resilio-sync.service -O ~/.config/systemd/user/fedora-resilio-sync.service && \ systemctl enable --user --now fedora-resilio-sync.service + +# Install scrcpy, a utility that mirrors Android devices (video and audio) connected via USB or over TCP/IP +install-scrcpy: + if grep -qvz "fedora" <<< $(distrobox list); then \ + distrobox create --nvidia --image ghcr.io/ublue-os/fedora-distrobox:latest -n fedora -Y; \ + fi && \ + distrobox enter -n fedora -- bash -c 'sudo dnf copr enable -y zeno/scrcpy && \ + sudo dnf install -y scrcpy && \ + distrobox-export --app scrcpy'