Splitplay is a program to play games in splitscreen on one machine.
It isolates games to allow running multiple instances simultaneously, and via custom modifications to gamescope, can isolate certain input devices to each.
Warning
This project is in early stages and is not a replacement for a project like partydeck-rs.
To run Splitplay, build it via cmake:
cmake -B build
cmake --build buildRun the executable, passing the commandline you would like to run as an argument.
For this example, we'll use supertuxkart. (It has splitscreen natively, but this is just a demo.)
build/splitplay-linux supertuxkartA window should appear with 2 sections. Add as many players as you want (you need at least 1), and assign inputs to them on the right.
Warning
Once the game launches, the device will be fully isolated into the game, and unable to access anything outside. Make sure you have a spare or unbound keyboard/mouse.
Then, you can click launch, and all the windows should appear shortly.