Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
feat(yafti): granular waydroid + gaming config
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz authored Aug 11, 2023
1 parent a0f1b13 commit 2bbf68b
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 10 deletions.
3 changes: 3 additions & 0 deletions usr/bin/refresh-yafti
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
rm -r "$HOME/.config/yafti"
yafti /usr/share/ublue-os/firstboot/yafti.yml
6 changes: 6 additions & 0 deletions usr/share/applications/Yafti.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=Yafti
Exec=sh /usr/bin/refresh-yafti
Icon=fish
Categories=System
5 changes: 4 additions & 1 deletion usr/share/ublue-os/firstboot/yafti.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ screens:
default: false
packages:
- Setup Gamebox Container: just --unstable setup gamebox
- Setup Steam-only session: just --unstable setup steam-session
Nimbus:
description: Development toolbox meant for coding!
default: false
Expand All @@ -37,7 +38,9 @@ screens:
description: Android support with GApps, ARM translation, and Widevine out of the box
default: false
packages:
- Setup remotes: just --unstable setup waydroid
- Setup waydroid: just --unstable setup waydroid
- Setup waydroid-only session: just --unstable setup waydroid-session
- Setup shortcuts: just --unstable setup waydroid-shortcut
Remote:
description: Sets up proper remote access to this system!
default: false
Expand Down
29 changes: 20 additions & 9 deletions usr/share/ublue-os/just/setup.just
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
waydroid:
aydroid:
pkexec waydroid init -s GAPPS -c https://ota.waydro.id/system -v https://ota.waydro.id/vendor
pkexec sh -c 'git clone https://github.com/casualsnek/waydroid_script /tmp/wrscript && python3 -m venv /tmp/wrscript/venv && /tmp/wrscript/venv/bin/pip install -r /tmp/wrscript/requirements.txt && /tmp/wrscript/venv/bin/python3 /tmp/wrscript/main.py -a 11 install smartdock libndk widevine && /tmp/wrscript/venv/bin/python3 /tmp/wrscript/main.py -a 11 hack hidestatusbar'

waydroid-shortcut:
mkdir -p $HOME/.local/share/applications
cp /usr/share/ublue-os/malachite/applications/*Waydroid* $HOME/.local/share/applications

waydroid-session:
pkexec sh -c 'mkdir -p /usr/local/share/wayland-sessions && cp /usr/share/ublue-os/malachite/sessions/waydroid-session.desktop /usr/local/share/wayland-sessions'

cockpit:
pkexec sh -c 'systemctl try-restart sshd && podman container runlabel --name cockpit-ws RUN quay.io/cockpit/ws && podman container runlabel INSTALL quay.io/cockpit/ws && systemctl enable cockpit.service'

ubuntu-theme:
dconf load / < /usr/share/ublue-os/malachite/dconf/ubuntu.ini

fish:
pkexec usermod -s /usr/bin/fish $USER
pkexec usermod -s /usr/bin/fish "$USER"
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
fish -c 'omf install bobthefish'

nushell:
pkexec usermod -s /usr/bin/nushell "$USER"

dotfiles:
git clone https://github.com/TheLocehiliosan/yadm.git ~/.local/share/yadm-clone
mkdir -p $HOME/.local/bin
Expand All @@ -32,12 +42,13 @@ positivo-touchscreen:
printf 'SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", ENV{WL_OUTPUT}="silead_ts", ENV{LIBINPUT_CALIBRATION_MATRIX}="2.0994971271086835 0.0 -0.009475882227217559 0.0 3.2251959199264215 -0.002555450541782298 0.0 0.0 1.0"' | pkexec tee -a /etc/udev/rules.d/99-positivo-touchscreen.rules

nimbus:
distrobox create -i ghcr.io/tulilirockz/nimbus:latest -n nimbus -Y
distrobox-enter -n nimbus -- 'paru -Syu --noconfirm visual-studio-code-bin'
distrobox-enter -n nimbus -- 'distrobox-export --app code && distrobox-export --bin /usr/sbin/code'
distrobox-enter -n nimbus -- 'distrobox-export --bin /usr/sbin/gh'
distrobox-enter -n nimbus -- 'distrobox-export --bin /usr/sbin/glab'
distrobox create -i ghcr.io/tulilirockz/nimbus:latest -n nimbus -Y
distrobox-enter -n nimbus -- 'paru -Syu --noconfirm visual-studio-code-bin'
distrobox-enter -n nimbus -- 'distrobox-export --app code && distrobox-export --bin /usr/sbin/code'

gamebox:
distrobox create -i ghcr.io/ublue-os/bazzite-arch:latest -n gamebox -Y
distrobox-enter -n gamebox -- 'distrobox-export --app steam ; distrobox export --app lutris ; distrobox-export --bin protontricks ; distrobox-export --bin lutris'
distrobox create -i ghcr.io/ublue-os/bazzite-arch:latest -n gamebox -Y
distrobox-enter -n gamebox -- 'distrobox-export --app steam ; distrobox export --app lutris ; distrobox-export --bin protontricks ; distrobox-export --bin lutris'

steam-session:
pkexec sh -c 'mkdir -p /usr/local/share/wayland-sessions && cp /usr/share/ublue-os/malachite/sessions/steam-session.desktop /usr/local/share/wayland-sessions'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=Waydroid Kill Server
Exec=/usr/bin/pkexec waydroid container stop
Icon=waydroid
Categories=X-WayDroid-App;
X-Purism-FormFactor=Workstation;Mobile;

0 comments on commit 2bbf68b

Please sign in to comment.