Browse Source

fix gamepadconfig

master
flutterbrony 4 months ago
parent
commit
64155d6502
3 changed files with 31 additions and 1 deletions
  1. +5
    -1
      README.md
  2. +16
    -0
      files/etc/systemd/system/antimicrox.service
  3. +10
    -0
      files/home/.config/antimicrox/antimicrox_settings.ini

+ 5
- 1
README.md View File

@@ -36,7 +36,7 @@ apt install box64-arm64 -y
Since we installed raspbian lite on the pi, we'll need to install xorg and set it to auto login on boot, to achieve that, we'll install nodm. Since we installed raspbian lite on the pi, we'll need to install xorg and set it to auto login on boot, to achieve that, we'll install nodm.


``` ```
sudo apt install -y nodm libsdl2-2.0-0 mpv
sudo apt install -y nodm libsdl2-2.0-0 mpv antimicrox
``` ```


## Clone the repo of project ## Clone the repo of project
@@ -73,10 +73,14 @@ To allow eggnogg to start on boot, we install it as a systemd service, you can w
```sh ```sh
sudo cp /home/pi/eggnoggpi/files/etc/systemd/system/eggnoggpi.service /etc/systemd/system/eggnoggpi.service sudo cp /home/pi/eggnoggpi/files/etc/systemd/system/eggnoggpi.service /etc/systemd/system/eggnoggpi.service
sudo cp /home/pi/eggnoggpi/files/etc/systemd/system/mpv.service /etc/systemd/system/mpv.service sudo cp /home/pi/eggnoggpi/files/etc/systemd/system/mpv.service /etc/systemd/system/mpv.service
sudo cp /home/pi/eggnoggpi/files/etc/systemd/system/antimicrox.service /etc/systemd/system/antimicrox.service
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl enable antimicrox
sudo systemctl start antimicrox
sudo systemctl enable eggnoggpi sudo systemctl enable eggnoggpi
sudo systemctl enable mpv sudo systemctl enable mpv
sudo systemctl start mpv sudo systemctl start mpv
sudo systemctl start eggnoggpi sudo systemctl start eggnoggpi
sudo echo "@reboot root /sbin/service eggnoggpi start" >> /etc/crontab sudo echo "@reboot root /sbin/service eggnoggpi start" >> /etc/crontab
cp -R /home/pi/eggnoggpi/files/home/.config/antimicrox .config/
``` ```

+ 16
- 0
files/etc/systemd/system/antimicrox.service View File

@@ -0,0 +1,16 @@
[Unit]
Description=antimicrox
Requires=nodm.service
After=nodm.service

[Service]
Restart=always
User=pi
Group=pi
EnvironmentFile=/etc/default/eggnogg

WorkingDirectory=/home/pi
ExecStart=/usr/bin/antimicrox

[Install]
WantedBy=graphical.target

+ 10
- 0
files/home/.config/antimicrox/antimicrox_settings.ini View File

@@ -0,0 +1,10 @@
[General]
DisplayNames=0
WindowPosition=@Point(0 0)
WindowSize=@Size(650 580)

[Controllers]
Controller0300000079000000110000001001000012117ConfigFile1=/home/pi/A.gamecontroller.amgp
Controller0300000079000000110000001001000012117LastSelected=/home/pi/A.gamecontroller.amgp
Controller0300000079000000110000001001000012119ConfigFile1=/home/pi/B.gamecontroller.amgp
Controller0300000079000000110000001001000012119LastSelected=/home/pi/B.gamecontroller.amgp

Loading…
Cancel
Save