#discord #rpc #steam #proton

app discord-rpc-helper

Automatically sets Discord activity based on running Proton games

8 stable releases

1.1.7 Mar 6, 2023
1.1.6 Feb 25, 2023
1.1.4 Jan 28, 2023
1.1.3 Dec 16, 2022
1.0.1 Jun 5, 2022

#16 in Games

Download history 47/week @ 2022-11-30 2/week @ 2022-12-07 25/week @ 2022-12-14 12/week @ 2022-12-21 1/week @ 2023-01-04 6/week @ 2023-01-11 1/week @ 2023-01-18 28/week @ 2023-01-25 33/week @ 2023-02-01 10/week @ 2023-02-08 19/week @ 2023-02-15 21/week @ 2023-02-22 16/week @ 2023-03-01 4/week @ 2023-03-08 23/week @ 2023-03-15

70 downloads per month

GPL-3.0-only

34KB
479 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" 
}

Caching directory

We scan for XDG_RUNTIME_DIR and create a folder in there. This means the cache does not persist between reboots. In the future there will be an option to configure the cache path.

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

~11–19MB
~386K SLoC