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'