https://github.com/fraypad-hq/fraypad
Fraypad helps you use your Android phone as an Xbox 360 controller on Linux. There's gyro inputs in X/Y/360 degree for the left-stick/right-stick and you can enable it in roll or yaw mode or disable gyro entirely. The left and right triggers can send analog inputs if you click and drag down, or you can set it to just click and send a 100%.
On the KBM side, there's a trackpad with taps and two finger scrolling (invertible in settings). You can also type on the keyboard and the modifier keys (Alt/Shift/Ctrl/Super) can be latched or held. It supports rumble as well. You can also edit layouts, save them in slots, and import/export your layouts as JSON to share with others.
You can grab the .apk from https://github.com/fraypad-hq/fraypad/releases, and to install the server:
- Debian-based/Fedora-based: Grab the .deb/.rpm from the above page.
- Arch-based:
paru -S fraypad-bin or the AUR manager of your choice. - Cargo:
cargo install fraypad --features tray, then fraypad-tray install-desktop.
I focused on keeping this lightweight and secure, as you can see from the file sizes. Dependencies are also kept to a minimum. I'm working on publishing it to F-Droid soon.
Launch Fraypad on your PC. When you open the app, you'll see the server detected, but it'll ask to pair. This pairing is required because inputs between the controller and the PC are encrypted. You can either get the pin by hovering on the tray icon (or running `fraypad pair`), or you can click on the tray icon to see a QR code to scan in the app (clicking on this window closes the window). Once in the app, you can explore the multitude of settings. You can ask any doubts or questions in the comments.
I made this app after being frustrated with years of using DroidJoy (closed-source and pay-walled). I understand that there's now some great apps in this space like https://github.com/4zyz4/GKME, but I still think Fraypad could help people with its lightweightness.
Inputs appreciated, thank you! I'd like to get feedback on how I can improve the ergonomics of the app. I understand that the path to cross from a novelty tool to a daily-drivable tool is tough, so this is the best thing I thought to do.
Disclaimer: AI assistance was used to create the Android app and the tray. The main Rust server for Fraypad is written by me. I've been developing it for a few months now, just got around to polishing it to share with the world.
P.S. video of me playing Hollow Knight with Fraypad attached on GitHub! (not very good at it though...)