Created
June 16, 2017 08:49
-
-
Save Ryochan7/da6348a01c02e3a1c48f528224567377 to your computer and use it in GitHub Desktop.
Example MoltenGamepad start-up script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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