Add Linux support with application mute handling and startup script

This commit is contained in:
Robert Chery
2026-07-08 21:28:21 -04:00
parent 4b45c031e0
commit 5ff2e15571
3 changed files with 99 additions and 7 deletions

22
start-macropad.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Move to the script's directory
cd "$(dirname "$0")"
echo "Starting Macropad Control Center..."
node server.js &
SERVER_PID=$!
# Wait 2 seconds for server to start
sleep 2
# Open local config page in default browser
if command -v xdg-open > /dev/null; then
xdg-open http://localhost:3001
elif command -v gnome-open > /dev/null; then
gnome-open http://localhost:3001
else
echo "Please open http://localhost:3001 in your browser"
fi
# Keep the script running to allow stopping the server with Ctrl+C
wait $SERVER_PID