mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
* Add optional xpadneo driver prompt to Steam installer Prompts users during Steam installation to optionally install the xpadneo driver, which fixes common Xbox/Bluetooth controller issues including detection problems and missing rumble support. * Install xpadneo controller driver by default * Add idempotency checks and relaunch state * Remove Steam launch since relaunch required * Extract xbox controller installer into separate step * Bring back launch * Force reinstall --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
18 lines
518 B
Bash
Executable File
18 lines
518 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Install xpadneo to ensure controllers work out of the box
|
|
sudo pacman -S --noconfirm --needed linux-headers
|
|
yay -S --noconfirm xpadneo-dkms
|
|
|
|
# Prevent xpad/xpadneo driver conflict
|
|
echo blacklist xpad | sudo tee /etc/modprobe.d/blacklist-xpad.conf >/dev/null
|
|
echo hid_xpadneo | sudo tee /etc/modules-load.d/xpadneo.conf >/dev/null
|
|
|
|
# Give user access to game controllers
|
|
sudo usermod -a -G input $USER
|
|
|
|
# Modules need to be loaded
|
|
gum confirm "Install requires reboot. Ready?" && sudo reboot now
|