A Steam game launch wrapper which runs gpu-screen-recorder
alongside your game.
gpu-screen-recorder
(available on the AUR as gpu-screen-recorder-git)xbindkeys
for, you guessed it, binding keysxrandr
to discover your primary monitor
- Clone repo:
git clone https://github.com/mWalrus/reps
Add this to your launch commands for any game:
/path/to/reps/reps.sh %command%
Replays are saved to $HOME/Replays
Before the game launches:
- Bind Alt+R to save replays
- Bind Alt+K to kill the screen recorder
- Kill any previous instances of
gpu-screen-recorder
- Run the
gpu-screen-recorder
(check the script for details and options)
After the game exits:
- Kill the
gpu-screen-recorder
instance
Since this uses xbindkeys
and xrandr
, this little script will only work on systems
running the X window server and therefore will not be executed under any other window
server such as wayland.
BUT, gpu-screen-recorder
will work under wayland so you can still use that on there.
You can use the flags used in the script as reference.
If you want to contribute a wayland version of this script you can submit a pull request to the 'wayland' branch :)