mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-29 22:20:21 +00:00
feat: Add fix-screenshare command to just and yafti.
chore: Clean up some syntax issues in 30-distrobox.just
This commit is contained in:
parent
92621fb0d0
commit
db4bd53f7c
@ -390,3 +390,14 @@ _toggle_wayland:
|
||||
# Enable Flatpak Theming
|
||||
enable-flatpak-theming:
|
||||
flatpak override --user --filesystem=xdg-config/gtk-4.0:ro --filesystem=xdg-config/gtk-3.0:ro --filesystem=~/.icons:ro --filesystem=~/.themes:ro
|
||||
|
||||
# Enable xwaylandvideobridge for screensharing
|
||||
fix-screenshare:
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json" && \
|
||||
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO) && \
|
||||
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then \
|
||||
mkdir -p $HOME/.config/autostart && \
|
||||
cp /usr/share/applications/org.kde.xwaylandvideobridge.desktop $HOME/.config/autostart/; \
|
||||
else \
|
||||
echo "This is only supported under KDE."; \
|
||||
fi
|
||||
|
@ -77,16 +77,16 @@ reset-bazzite-arch:
|
||||
distrobox stop bazzite-arch && \
|
||||
distrobox rm bazzite-arch --force && \
|
||||
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then \
|
||||
podman image rm bazzite-arch --force \
|
||||
podman image rm bazzite-arch --force; \
|
||||
else \
|
||||
podman image rm bazzite-arch-gnome --force \
|
||||
podman image rm bazzite-arch-gnome --force; \
|
||||
fi && \
|
||||
/usr/bin/just --unstable install-bazzite-arch
|
||||
|
||||
# Install Webapp manager
|
||||
install-webapp-manager:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
/usr/bin/just --unstable distrobox-fedora; \
|
||||
fi && \
|
||||
distrobox-enter -n fedora -- sudo sh -c "sudo dnf copr enable -y kylegospo/webapp-manager && \
|
||||
sudo dnf install -y webapp-manager && \
|
||||
@ -95,7 +95,7 @@ install-webapp-manager:
|
||||
# Install Oversteer for Logitech steering wheels
|
||||
install-oversteer:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
/usr/bin/just --unstable distrobox-fedora; \
|
||||
fi && \
|
||||
distrobox enter -n fedora -- bash -c 'sudo dnf copr enable -y kylegospo/oversteer && \
|
||||
sudo dnf install \
|
||||
@ -106,7 +106,7 @@ install-oversteer:
|
||||
# Install OpenRazer for Razer gaming hardware
|
||||
install-openrazer:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
/usr/bin/just --unstable 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 \
|
||||
@ -115,7 +115,7 @@ install-openrazer:
|
||||
# Install Solaar for Logitech Mice, Keyboards, and Trackpads
|
||||
install-solaar:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
/usr/bin/just --unstable distrobox-fedora; \
|
||||
fi && \
|
||||
distrobox-enter -n fedora -- bash -c 'sudo dnf install -y \
|
||||
solaar && \
|
||||
@ -127,7 +127,7 @@ install-solaar:
|
||||
# Install Resilio Sync, a file synchronization utility powered by BitTorrent
|
||||
install-resilio-sync:
|
||||
if grep -qz "fedora" <<< $(distrobox list); then \
|
||||
/usr/bin/just --unstable distrobox-fedora \
|
||||
/usr/bin/just --unstable 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 && \
|
||||
|
@ -208,3 +208,14 @@ unhide-grub:
|
||||
# Enable Flatpak Theming
|
||||
enable-flatpak-theming:
|
||||
flatpak override --user --filesystem=xdg-config/gtk-4.0:ro --filesystem=xdg-config/gtk-3.0:ro --filesystem=~/.icons:ro --filesystem=~/.themes:ro
|
||||
|
||||
# Enable xwaylandvideobridge for screensharing
|
||||
fix-screenshare:
|
||||
IMAGE_INFO="/usr/share/ublue-os/image-info.json" && \
|
||||
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO) && \
|
||||
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then \
|
||||
mkdir -p $HOME/.config/autostart && \
|
||||
cp /usr/share/applications/org.kde.xwaylandvideobridge.desktop $HOME/.config/autostart/; \
|
||||
else \
|
||||
echo "This is only supported under KDE."; \
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user