Skip to content

Instantly share code, notes, and snippets.

@Ryochan7
Created June 16, 2017 08:49
Show Gist options
  • Save Ryochan7/da6348a01c02e3a1c48f528224567377 to your computer and use it in GitHub Desktop.
Save Ryochan7/da6348a01c02e3a1c48f528224567377 to your computer and use it in GitHub Desktop.
Example MoltenGamepad start-up script
#!/bin/sh
disablegids()
{
sleep 6
GAMEPAD_IDS=`xinput | grep "Virtual Gamepad (MoltenGamepad)" | awk '{print $6}' | tr -d "id="`
for gid in $GAMEPAD_IDS
do
echo "DISABLING $gid"
DISPLAY=$DISPLAY xinput disable $gid
done
echo "FINISHED"
}
disablegids &
/home/steam/bin/moltengamepad --num-gamepads 1 -p /home/steam/Documents
#/home/steam/bin/moltengamepad --num-gamepads 1
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment