diff options
author | Jake | 2017-12-24 15:59:45 +0100 |
---|---|---|
committer | Jake | 2017-12-24 15:59:45 +0100 |
commit | f637790ce3e660be27f54c67981ca5ee9948c3c4 (patch) | |
tree | 9df4f3df37d70516592fcffbc854a73df58c6ad5 /next.sh | |
parent | 510f1e025902d9d21541bf02c373b18004bae3d3 (diff) | |
download | aur-f637790ce3e660be27f54c67981ca5ee9948c3c4.tar.gz |
Load SDL_GAMECONTROLLERCONFIG from txt file in home dir
Diffstat (limited to 'next.sh')
-rw-r--r-- | next.sh | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,4 +1,15 @@ #!/bin/bash +# Put your SDL2 Config string into this file so it gets automatically set at start +file="$HOME/neXt/controllerconfigs.txt" +if [ -e "$file" ]; then + contents="`cat $file`"; + export SDL_GAMECONTROLLERCONFIG="$contents"; + echo "Set SDL_GAMECONTROLLERCONFIG to $contents"; +else + echo "No ~/neXt/controllerconfigs.txt found"; +fi; + + cd /opt/next/ ./neXt.x86_64 || ./neXt.x86 |