Skip to content

Commit

Permalink
feat: Add Web App Manager, OpenRazer, Oversteer, Solaar, and Resilio …
Browse files Browse the repository at this point in the history
…Sync
  • Loading branch information
KyleGospo committed Sep 22, 2023
1 parent b2f7759 commit 9480794
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- '**.txt'
- 'repo_content/**'
- 'spec_files/**'
- 'post_install_files/**'
push:
branches:
- main
Expand All @@ -18,6 +19,7 @@ on:
- '**.txt'
- 'repo_content/**'
- 'spec_files/**'
- 'post_install_files/**'
merge_group:
workflow_dispatch:
env:
Expand Down
10 changes: 10 additions & 0 deletions post_install_files/resilio_sync/fedora-resilio-sync.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Resilio Sync per-user service
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/distrobox-enter -n fedora -- ' /usr/bin/rslsync --nodaemon'

[Install]
WantedBy=default.target
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ distrobox-ubuntu:
echo 'Creating Ubuntu distrobox ...'
distrobox create --nvidia --image quay.io/toolbx-images/ubuntu-toolbox:22.04 -n ubuntu -Y

# Install obs-studio-portable from wimpysworld, which bundles an extensive collection of 3rd party plugins
install-obs-studio-portable:
if grep -qz "obs-studio-portable" <<< $(distrobox list); then \
echo 'Removing existing obs-studio-portable install...' && \
distrobox rm obs-studio-portable --force; \
fi && \
echo 'Installing obs-studio-portable...' && \
distrobox create --no-entry --name obs-studio-portable --image ghcr.io/ublue-os/obs-studio-portable --nvidia --yes && \
distrobox-enter -n obs-studio-portable -- 'bash -c "distrobox-export --app obs"' && \
echo 'Install complete'

# Set up Bazzite-Arch Distrobox container
install-bazzite-arch:
source /etc/default/bazzite && \
Expand Down Expand Up @@ -58,13 +69,56 @@ install-bazzite-arch:
sleep 10 && \
rm -f ~/Desktop/steam.desktop

# Install obs-studio-portable from wimpysworld, which bundles an extensive collection of 3rd party plugins
install-obs-studio-portable:
if grep -qz "obs-studio-portable" <<< $(distrobox list); then \
echo 'Removing existing obs-studio-portable install...' && \
distrobox rm obs-studio-portable --force; \
# Install Webapp manager
install-webapp-manager:
if grep -qz "fedora" <<< $(distrobox list); then \
/usr/bin/just distrobox-fedora \
fi && \
echo 'Installing obs-studio-portable...' && \
distrobox create --no-entry --name obs-studio-portable --image ghcr.io/ublue-os/obs-studio-portable --nvidia --yes && \
distrobox-enter -n obs-studio-portable -- 'bash -c "distrobox-export --app obs"' && \
echo 'Install complete'
distrobox-enter -n fedora -- sudo sh -c "sudo dnf copr enable -y kylegospo/webapp-manager && \
sudo dnf install -y webapp-manager && \
distrobox-export --app webapp-manager"

# Install Oversteer for Logitech steering wheels
install-oversteer:
if grep -qz "fedora" <<< $(distrobox list); then \
/usr/bin/just distrobox-fedora \
fi && \
distrobox enter -n fedora -- bash -c 'sudo dnf copr enable -y kylegospo/oversteer && \
sudo dnf install \
python3-evdev \
oversteer && \
distrobox-export --app oversteer'

# Install OpenRazer for Razer gaming hardware
install-openrazer:
if grep -qz "fedora" <<< $(distrobox list); then \
/usr/bin/just distrobox-fedora \
fi && \
distrobox-enter -n fedora -- bash -c 'sudo wget https://download.opensuse.org/repositories/hardware:/razer/Fedora_$(rpm -E %fedora)/hardware:razer.repo -O /etc/yum.repos.d/hardware:razer.repo && \
sudo dnf install -y \
openrazer-meta'

# Install Solaar for Logitech Mice, Keyboards, and Trackpads
install-solaar:
if grep -qz "fedora" <<< $(distrobox list); then \
/usr/bin/just distrobox-fedora \
fi && \
distrobox-enter -n fedora -- bash -c 'sudo dnf install -y \
solaar && \
distrobox-export --app solaar' && \
mkdir -p ~/.config/autostart && \
rm -f ~/.config/autostart/fedora-solaar.desktop && \
cp ~/.local/share/applications/fedora-solaar.desktop ~/.config/autostart/fedora-solaar.desktop

# Install Resilio Sync
install-resilio-sync:
if grep -qz "fedora" <<< $(distrobox list); then \
/usr/bin/just distrobox-fedora \
fi && \
distrobox-enter -n fedora -- bash -c 'sudo rpm --import https://linux-packages.resilio.com/resilio-sync/key.asc && \
printf "[resilio-sync]\nname=Resilio Sync\nbaseurl=https://linux-packages.resilio.com/resilio-sync/rpm/\$basearch\nenabled=1\ngpgcheck=1\n" | sudo tee /etc/yum.repos.d/resilio-sync.repo && \
sudo dnf install -y resilio-sync' && \
mkdir -p ~/.config/systemd/user/ && \
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

0 comments on commit 9480794

Please sign in to comment.