#discord #rpc #steam #proton

app discord-rpc-helper

Automatically sets Discord activity based on running Proton games

1 stable release

Uses new Rust 2021

1.0.1 Jun 5, 2022

#184 in Games

Custom license

33KB
503 lines

discord-rpc-helper

Helps set Steam game activity as a Discord activity

Installation

Currently the only way to install is to clone the repo and run cargo install --path . from the repo's root directory.

You will also need to provide your own discord client id. Make sure XDG_CONFIG_HOME is set and create $XDG_CONFIG_HOME\discord-rpc-helper\config.json.

Example config.json

{
  "discord_client_id": "11111111111111111111" 
}

Running the service automatically on login (systemd service)

Create $HOME/.config/systemd/user/discord-rpc-helper.service and paste the following:

[Service]
Environment=XDG_CONFIG_HOME=/home/YOURUSERNAME/.config
ExecStart=/home/YOURUSERNAME/.cargo/bin/discord-rpc-helper

[Install]
WantedBy=default.target

[Unit]
Description=Discord RPC helper for Steam, written in Rust
After=network.target

Make sure to change YOURUSERNAME to the username that you used to run cargo install with.

After that run systemctl --user daemon-reload and systemctl --user enable --now discord-rpc-helper.service.

Check if everything is running by running systemctl --user status discord-rpc-helper.service.

Dependencies

~10–19MB
~382K SLoC