From 2942af9aea9bc57c139dfae2f5b277f3c74e8909 Mon Sep 17 00:00:00 2001 From: Eric Jimenez-Chung Date: Sat, 27 Sep 2025 16:17:55 +0200 Subject: [PATCH 1/7] 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. --- bin/omarchy-install-steam | 49 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-install-steam b/bin/omarchy-install-steam index 753337000a..2e3ab1745e 100755 --- a/bin/omarchy-install-steam +++ b/bin/omarchy-install-steam @@ -1,5 +1,52 @@ #!/bin/bash +set -e + echo "Now pick dependencies matching your graphics card" +echo "Installing Steam..." sudo pacman -Syu --noconfirm steam -setsid gtk-launch steam >/dev/null 2>&1 & + +# Ask about controller support +echo "" +echo "Do you want to install enhanced controller support?" +echo "This installs xpadneo driver to fix common Xbox/Bluetooth controller issues." +echo "Learn more: https://github.com/atar-axis/xpadneo" +echo "" +echo "Fixes reported by users:" +echo " • Steam not detecting Xbox controllers (Bazzite #602, EndeavourOS forums)" +echo " • Missing rumble/vibration support" +echo " • Bluetooth connectivity problems" +echo "" +read -p "Install controller fix? (y/N): " -n 1 -r +echo "" + +if [[ $REPLY =~ ^[Yy]$ ]]; then + echo "Setting up xpadneo enhanced controller support..." + + # Install kernel headers + KERNEL=$(uname -r) + if [[ $KERNEL == *"zen"* ]]; then + sudo pacman -S --noconfirm linux-zen-headers + elif [[ $KERNEL == *"lts"* ]]; then + sudo pacman -S --noconfirm linux-lts-headers + else + sudo pacman -S --noconfirm linux-headers + fi + + # Install xpadneo driver + echo "Installing xpadneo from AUR..." + yay -S --noconfirm xpadneo-dkms + + # Replace default driver + echo 'blacklist xpad' | sudo tee /etc/modprobe.d/blacklist-xpad.conf >/dev/null + sudo modprobe hid_xpadneo + echo 'hid_xpadneo' | sudo tee /etc/modules-load.d/xpadneo.conf >/dev/null + + # Add input group permission + sudo usermod -a -G input $USER + + echo "Controller support installed!" +fi + +echo "Launching Steam..." +setsid gtk-launch steam >/dev/null 2>&1 & \ No newline at end of file From 7c6a0ee7534fca590e3467080f877dee004cff83 Mon Sep 17 00:00:00 2001 From: Eric Jimenez-Chung Date: Mon, 13 Oct 2025 11:00:29 +0200 Subject: [PATCH 2/7] Install xpadneo controller driver by default --- bin/omarchy-install-steam | 50 ++++++--------------------------------- 1 file changed, 7 insertions(+), 43 deletions(-) diff --git a/bin/omarchy-install-steam b/bin/omarchy-install-steam index 2e3ab1745e..33584715f1 100755 --- a/bin/omarchy-install-steam +++ b/bin/omarchy-install-steam @@ -3,50 +3,14 @@ set -e echo "Now pick dependencies matching your graphics card" -echo "Installing Steam..." sudo pacman -Syu --noconfirm steam -# Ask about controller support -echo "" -echo "Do you want to install enhanced controller support?" -echo "This installs xpadneo driver to fix common Xbox/Bluetooth controller issues." -echo "Learn more: https://github.com/atar-axis/xpadneo" -echo "" -echo "Fixes reported by users:" -echo " • Steam not detecting Xbox controllers (Bazzite #602, EndeavourOS forums)" -echo " • Missing rumble/vibration support" -echo " • Bluetooth connectivity problems" -echo "" -read -p "Install controller fix? (y/N): " -n 1 -r -echo "" +# Install xpadneo to ensure controllers work out of the box +sudo pacman -S --noconfirm linux-headers +yay -S --noconfirm xpadneo-dkms +echo 'blacklist xpad' | sudo tee /etc/modprobe.d/blacklist-xpad.conf >/dev/null +sudo modprobe hid_xpadneo +echo 'hid_xpadneo' | sudo tee /etc/modules-load.d/xpadneo.conf >/dev/null +sudo usermod -a -G input $USER -if [[ $REPLY =~ ^[Yy]$ ]]; then - echo "Setting up xpadneo enhanced controller support..." - - # Install kernel headers - KERNEL=$(uname -r) - if [[ $KERNEL == *"zen"* ]]; then - sudo pacman -S --noconfirm linux-zen-headers - elif [[ $KERNEL == *"lts"* ]]; then - sudo pacman -S --noconfirm linux-lts-headers - else - sudo pacman -S --noconfirm linux-headers - fi - - # Install xpadneo driver - echo "Installing xpadneo from AUR..." - yay -S --noconfirm xpadneo-dkms - - # Replace default driver - echo 'blacklist xpad' | sudo tee /etc/modprobe.d/blacklist-xpad.conf >/dev/null - sudo modprobe hid_xpadneo - echo 'hid_xpadneo' | sudo tee /etc/modules-load.d/xpadneo.conf >/dev/null - - # Add input group permission - sudo usermod -a -G input $USER - - echo "Controller support installed!" -fi - -echo "Launching Steam..." setsid gtk-launch steam >/dev/null 2>&1 & \ No newline at end of file From 2d73856df7336967b344151a6e841fa17f9621d3 Mon Sep 17 00:00:00 2001 From: Eric Jimenez-Chung Date: Mon, 13 Oct 2025 11:17:53 +0200 Subject: [PATCH 3/7] Add idempotency checks and relaunch state --- bin/omarchy-install-steam | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/bin/omarchy-install-steam b/bin/omarchy-install-steam index 33584715f1..25913056e0 100755 --- a/bin/omarchy-install-steam +++ b/bin/omarchy-install-steam @@ -6,11 +6,20 @@ echo "Now pick dependencies matching your graphics card" sudo pacman -Syu --noconfirm steam # Install xpadneo to ensure controllers work out of the box -sudo pacman -S --noconfirm linux-headers +sudo pacman -S --noconfirm --needed linux-headers yay -S --noconfirm xpadneo-dkms -echo 'blacklist xpad' | sudo tee /etc/modprobe.d/blacklist-xpad.conf >/dev/null + +if [[ ! -f /etc/modprobe.d/blacklist-xpad.conf ]]; then + echo 'blacklist xpad' | sudo tee /etc/modprobe.d/blacklist-xpad.conf >/dev/null # Prevent xpad/xpadneo driver conflict +fi + sudo modprobe hid_xpadneo -echo 'hid_xpadneo' | sudo tee /etc/modules-load.d/xpadneo.conf >/dev/null + +if [[ ! -f /etc/modules-load.d/xpadneo.conf ]]; then + echo 'hid_xpadneo' | sudo tee /etc/modules-load.d/xpadneo.conf >/dev/null +fi + sudo usermod -a -G input $USER +omarchy-state set relaunch-required setsid gtk-launch steam >/dev/null 2>&1 & \ No newline at end of file From c32d84f7d297bcdd4afbd289d619508268f791e9 Mon Sep 17 00:00:00 2001 From: Eric Jimenez-Chung Date: Mon, 13 Oct 2025 11:21:16 +0200 Subject: [PATCH 4/7] Remove Steam launch since relaunch required --- bin/omarchy-install-steam | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/omarchy-install-steam b/bin/omarchy-install-steam index 25913056e0..b7576ca8a6 100755 --- a/bin/omarchy-install-steam +++ b/bin/omarchy-install-steam @@ -20,6 +20,4 @@ if [[ ! -f /etc/modules-load.d/xpadneo.conf ]]; then fi sudo usermod -a -G input $USER -omarchy-state set relaunch-required - -setsid gtk-launch steam >/dev/null 2>&1 & \ No newline at end of file +omarchy-state set relaunch-required \ No newline at end of file From 23404ff7c7e2b6520a716d813549cea1a0805092 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 19 Nov 2025 09:18:21 +0100 Subject: [PATCH 5/7] Extract xbox controller installer into separate step --- bin/omarchy-install-steam | 18 +----------------- bin/omarchy-install-xbox-controllers | 17 +++++++++++++++++ bin/omarchy-menu | 3 ++- 3 files changed, 20 insertions(+), 18 deletions(-) create mode 100755 bin/omarchy-install-xbox-controllers diff --git a/bin/omarchy-install-steam b/bin/omarchy-install-steam index b7576ca8a6..1fc73f8f7b 100755 --- a/bin/omarchy-install-steam +++ b/bin/omarchy-install-steam @@ -3,21 +3,5 @@ set -e echo "Now pick dependencies matching your graphics card" -sudo pacman -Syu --noconfirm steam +sudo pacman -S --noconfirm --needed steam -# Install xpadneo to ensure controllers work out of the box -sudo pacman -S --noconfirm --needed linux-headers -yay -S --noconfirm xpadneo-dkms - -if [[ ! -f /etc/modprobe.d/blacklist-xpad.conf ]]; then - echo 'blacklist xpad' | sudo tee /etc/modprobe.d/blacklist-xpad.conf >/dev/null # Prevent xpad/xpadneo driver conflict -fi - -sudo modprobe hid_xpadneo - -if [[ ! -f /etc/modules-load.d/xpadneo.conf ]]; then - echo 'hid_xpadneo' | sudo tee /etc/modules-load.d/xpadneo.conf >/dev/null -fi - -sudo usermod -a -G input $USER -omarchy-state set relaunch-required \ No newline at end of file diff --git a/bin/omarchy-install-xbox-controllers b/bin/omarchy-install-xbox-controllers new file mode 100755 index 0000000000..b50067b024 --- /dev/null +++ b/bin/omarchy-install-xbox-controllers @@ -0,0 +1,17 @@ +#!/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 diff --git a/bin/omarchy-menu b/bin/omarchy-menu index 5c067324e7..e14d22f2d4 100755 --- a/bin/omarchy-menu +++ b/bin/omarchy-menu @@ -296,10 +296,11 @@ show_install_ai_menu() { } show_install_gaming_menu() { - case $(menu "Install" " Steam\n RetroArch [AUR]\n󰍳 Minecraft") in + case $(menu "Install" " Steam\n RetroArch [AUR]\n󰍳 Minecraft\n󰖺 Xbox Controller [AUR]") in *Steam*) present_terminal omarchy-install-steam ;; *RetroArch*) aur_install_and_launch "RetroArch" "retroarch retroarch-assets libretro libretro-fbneo" "com.libretro.RetroArch.desktop" ;; *Minecraft*) install_and_launch "Minecraft" "minecraft-launcher" "minecraft-launcher" ;; + *Xbox*) present_terminal omarchy-install-xbox-controllers ;; *) show_install_menu ;; esac } From 4f5bb38d6ac8b2370cf52bf82e15de90579f38d4 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 19 Nov 2025 09:19:09 +0100 Subject: [PATCH 6/7] Bring back launch --- bin/omarchy-install-steam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/omarchy-install-steam b/bin/omarchy-install-steam index 1fc73f8f7b..3ef42fa35f 100755 --- a/bin/omarchy-install-steam +++ b/bin/omarchy-install-steam @@ -4,4 +4,4 @@ set -e echo "Now pick dependencies matching your graphics card" sudo pacman -S --noconfirm --needed steam - +setsid gtk-launch steam >/dev/null 2>&1 & From 464e8df91e2d8ea3ad576aafbfc6a547314fdfa3 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 19 Nov 2025 09:19:27 +0100 Subject: [PATCH 7/7] Force reinstall --- bin/omarchy-install-steam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/omarchy-install-steam b/bin/omarchy-install-steam index 3ef42fa35f..3d23cf0853 100755 --- a/bin/omarchy-install-steam +++ b/bin/omarchy-install-steam @@ -3,5 +3,5 @@ set -e echo "Now pick dependencies matching your graphics card" -sudo pacman -S --noconfirm --needed steam +sudo pacman -S --noconfirm steam setsid gtk-launch steam >/dev/null 2>&1 &