feat: Add required input user group in Bazzite Portal by default

This commit is contained in:
Kyle Gospodnetich 2023-09-27 16:15:07 -07:00
parent 98083aa71a
commit b57ff42462
4 changed files with 38 additions and 14 deletions

View File

@ -17,6 +17,11 @@ screens:
show_terminal: true
package_manager: yafti.plugin.run
groups:
Add input group to current user:
description: Adds the input group to your current user. Required by certain controller drivers.
default: true
packages:
- Set input group: just --unstable add-user-to-input-group
BIOS & Firmware Updates:
description: Enables BIOS & Firmware updates for Steam Deck hardware
default: true

View File

@ -393,11 +393,18 @@ enable-flatpak-theming:
# Enable XwaylandVideoBridge for screensharing on KDE
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."; \
#!/usr/bin/env bash
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
# Add user to "input" group required by certain controller drivers
add-user-to-input-group:
#!/usr/bin/env bash
getent group input || sudo groupadd input
sudo usermod -a -G input $USER

View File

@ -31,6 +31,11 @@ screens:
show_terminal: true
package_manager: yafti.plugin.run
groups:
Add input group to current user:
description: Adds the input group to your current user. Required by certain controller drivers.
default: true
packages:
- Set input group: just --unstable add-user-to-input-group
Greenlight:
description: A utility for xCloud and xHome streaming
default: false

View File

@ -211,11 +211,18 @@ enable-flatpak-theming:
# Enable XwaylandVideoBridge for screensharing on KDE
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."; \
#!/usr/bin/env bash
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
# Add user to "input" group required by certain controller drivers
add-user-to-input-group:
#!/usr/bin/env bash
getent group input || sudo groupadd input
sudo usermod -a -G input $USER