mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-02 04:37:49 +02:00
* Add omarchy CLI * Remove outdated or internal * Add bash completions for command * Add omarchy command documentation * Add missing docs * Correct to what's now right * Fix tests --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
21 lines
616 B
Bash
Executable File
21 lines
616 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Install support for using Xbox controllers with Steam/RetroArch/etc.
|
|
# omarchy:requires-sudo=true
|
|
|
|
set -e
|
|
|
|
# Install xpadneo to ensure controllers work out of the box
|
|
omarchy-pkg-add linux-headers
|
|
omarchy-pkg-aur-add 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
|