From 64155d6502cde82257b7e1ebb71a536bfbc40c6a Mon Sep 17 00:00:00 2001 From: flutterbrony Date: Sat, 1 Jun 2024 01:57:03 +0200 Subject: [PATCH] fix gamepadconfig --- README.md | 6 +++++- files/etc/systemd/system/antimicrox.service | 16 ++++++++++++++++ files/home/.config/antimicrox/antimicrox_settings.ini | 10 ++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 files/etc/systemd/system/antimicrox.service create mode 100644 files/home/.config/antimicrox/antimicrox_settings.ini diff --git a/README.md b/README.md index a7a9173..2a964a1 100644 --- a/README.md +++ b/README.md @@ -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. ``` -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 @@ -73,10 +73,14 @@ To allow eggnogg to start on boot, we install it as a systemd service, you can w ```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/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 enable antimicrox +sudo systemctl start antimicrox sudo systemctl enable eggnoggpi sudo systemctl enable mpv sudo systemctl start mpv sudo systemctl start eggnoggpi sudo echo "@reboot root /sbin/service eggnoggpi start" >> /etc/crontab +cp -R /home/pi/eggnoggpi/files/home/.config/antimicrox .config/ ``` diff --git a/files/etc/systemd/system/antimicrox.service b/files/etc/systemd/system/antimicrox.service new file mode 100644 index 0000000..8d9eaed --- /dev/null +++ b/files/etc/systemd/system/antimicrox.service @@ -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 diff --git a/files/home/.config/antimicrox/antimicrox_settings.ini b/files/home/.config/antimicrox/antimicrox_settings.ini new file mode 100644 index 0000000..9b0475f --- /dev/null +++ b/files/home/.config/antimicrox/antimicrox_settings.ini @@ -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