Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added ujust get-decky-bazzite-buddy to view changelogs in game mode #2108

Merged
merged 18 commits into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,47 @@ restore-gamemode-shortcut:
chmod +x "$SHORTCUT_FILE"
echo "Shortcut restored successfully at $SHORTCUT_FILE."
echo "Note: The first time you use the shortcut, it may ask you to trust it. Please accept."

# Install Bazzite Buddy plugin to easily access changelogs in game mode!
install-bazzite-buddy:
#!/bin/bash
PLUGIN_URL="https://github.com/xXJSONDeruloXx/bazzite-buddy/releases/download/stable/bazzite-buddy.zip"
PLUGIN_NAME="bazzite-buddy"
PLUGIN_DIR="$HOME/homebrew/plugins"
if [ ! -d "$PLUGIN_DIR" ]; then
echo "Creating plugins directory with sudo..."
sudo mkdir -p "$PLUGIN_DIR"
fi
# Change to the plugin directory
cd "$PLUGIN_DIR" || { echo "Failed to navigate to plugins directory"; exit 1; }
# Remove any existing plugin folder
if [ -d "$PLUGIN_NAME" ]; then
echo "Removing existing $PLUGIN_NAME directory with sudo..."
sudo rm -rf "$PLUGIN_NAME"
fi
# Download the zip file
echo "Downloading $PLUGIN_NAME from $PLUGIN_URL..."
sudo curl -L -o "${PLUGIN_NAME}.zip" "$PLUGIN_URL"
if [ $? -ne 0 ]; then
echo "Download failed!"
exit 1
fi
echo "Extracting $PLUGIN_NAME..."
sudo unzip -o "${PLUGIN_NAME}.zip" -d .
if [ $? -ne 0 ]; then
echo "Extraction failed!"
exit 1
fi
# Move the extracted files to the correct location if nested
if [ -d "./${PLUGIN_NAME}/${PLUGIN_NAME}" ]; then
echo "Fixing folder structure..."
sudo mv ./${PLUGIN_NAME}/${PLUGIN_NAME}/* ./${PLUGIN_NAME}/
sudo rm -rf ./${PLUGIN_NAME}/${PLUGIN_NAME}
fi
# Clean up the downloaded ZIP file
echo "Cleaning up..."
sudo rm -f "${PLUGIN_NAME}.zip"
# Confirm installation
echo "$PLUGIN_NAME has been installed successfully to $PLUGIN_DIR!"
# Prompt user to restart Decky Loader
echo "Please restart Decky Loader to activate the plugin."
xXJSONDeruloXx marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,50 @@ toggle-password-feedback ACTION="":
echo "enabled, restart terminal to see changes"
fi

# Install Bazzite Buddy plugin to easily access changelogs in game mode!
get-decky-bazzite-buddy:
#!/bin/bash
PLUGIN_URL="https://github.com/xXJSONDeruloXx/bazzite-buddy/releases/download/stable/bazzite-buddy.zip"
PLUGIN_NAME="bazzite-buddy"
PLUGIN_DIR="$HOME/homebrew/plugins"
if [ ! -d "$PLUGIN_DIR" ]; then
echo "Creating plugins directory with sudo..."
sudo mkdir -p "$PLUGIN_DIR"
fi
# Change to the plugin directory
cd "$PLUGIN_DIR" || { echo "Failed to navigate to plugins directory"; exit 1; }
# Remove any existing plugin folder
if [ -d "$PLUGIN_NAME" ]; then
echo "Removing existing $PLUGIN_NAME directory with sudo..."
sudo rm -rf "$PLUGIN_NAME"
fi
# Download the zip file
echo "Downloading $PLUGIN_NAME from $PLUGIN_URL..."
sudo curl -L -o "${PLUGIN_NAME}.zip" "$PLUGIN_URL"
if [ $? -ne 0 ]; then
echo "Download failed!"
exit 1
fi
echo "Extracting $PLUGIN_NAME..."
sudo unzip -o "${PLUGIN_NAME}.zip" -d .
if [ $? -ne 0 ]; then
echo "Extraction failed!"
exit 1
fi
# Move the extracted files to the correct location if nested
if [ -d "./${PLUGIN_NAME}/${PLUGIN_NAME}" ]; then
echo "Fixing folder structure..."
sudo mv ./${PLUGIN_NAME}/${PLUGIN_NAME}/* ./${PLUGIN_NAME}/
sudo rm -rf ./${PLUGIN_NAME}/${PLUGIN_NAME}
fi
# Clean up the downloaded ZIP file
echo "Cleaning up..."
sudo rm -f "${PLUGIN_NAME}.zip"
# Confirm installation
echo "$PLUGIN_NAME has been installed successfully to $PLUGIN_DIR!"
# Prompt user to restart Decky Loader
echo "Please restart Decky Loader to activate the plugin."

post-gamescope-logs:
#!/usr/bin/bash
OUTPUT_FILE="/tmp/gathered_info.txt"
Expand Down
Loading