Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

chore: Drop gamepad configuration script thanks to changes in ublue-os/akmods no longer requiring it #203

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Changes from all commits
Commits
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
33 changes: 0 additions & 33 deletions build/ublue-os-just/50-akmods.just
Original file line number Diff line number Diff line change
@@ -1,38 +1,5 @@
# vim: set ft=make :

alias gamepads := configure-gamepads

# Configure gamepad drivers
configure-gamepads ACTION="prompt":
#!/usr/bin/bash
source /usr/lib/ujust/ujust.sh
OPTION={{ ACTION }}
if [ "$OPTION" == "prompt" ]; then
echo "${bold}Configuring gamepad drivers${normal}"
echo 'Which drivers do you want to use?'
echo 'Note: Enabling xone and xpadneo can break some 3rd party controllers'
OPTION=$(ugum choose "Default Fedora drivers" "Enable xone and xpadneo")
elif [ "$OPTION" == "help" ]; then
echo "Usage: ujust configure-gamepads <option>"
echo " <option>: Specify the quick option - 'stock' or 'ublue'"
echo " Use 'stock' to select Default Fedora Drivers"
echo " Use 'ublue' to select Enable xone and xpadneo"
exit 0
fi
if [ "$OPTION" == "Enable xone and xpadneo" ] || [ "$OPTION" == "ublue" ]; then
sudo rm -f /etc/modprobe.d/xone.conf
sudo rm -f /etc/modprobe.d/xpadneo.conf
sudo rm -f /etc/modprobe.d/xpad-noone-blacklist.conf
sudo rm -f /etc/modules-load.d/xpad-noone.conf
echo "${bold}Enabled${normal} xone and xpadneo, please reboot for changes to take effect"
elif [ "$OPTION" == "Default Fedora drivers" ] || [ "$OPTION" == "stock" ]; then
sudo bash -c '> /etc/modprobe.d/xone.conf'
sudo bash -c '> /etc/modprobe.d/xpadneo.conf'
sudo bash -c '> /etc/modprobe.d/xpad-noone-blacklist.conf'
sudo bash -c '> /etc/modules-load.d/xpad-noone.conf'
echo "${bold}Disabled${normal} xone and xpadneo, please reboot for changes to take effect"
fi

alias broadcom-wl := configure-broadcom-wl

# Configure Broadcom WL driver (Enabling WL breaks numerous other Wi-Fi adapters)
Expand Down