Git Product home page Git Product logo

rich-presence-cli's Introduction

rich-presence-cli

Manage your Discord Rich Presence from the command line over UDP.

Here're some wacky things you can do:

gif of some wacky things you can do

usage

Start a UDP proxy to the Discord IPC pipe:

make serve
go build -o ./bin/rich-presence.exe main.go
./bin/rich-presence.exe serve
2022/03/26 17:37:09 Listening on :1992

In another shell, send an update:

rich-presence update --details "$(basename "$PWD")" --state browsing...

We can also form the JSON payloads ourselves:

echo '{"details":"wassup"}' > /dev/udp/$WINHOST/1992

In the above snippets, I'm running on Windows via WSL (hence the .exe suffix), but it should work just fine on desktop Linux too.

configuration

Check out the rich-presence.yml configuration file at the root of this repo to see everything that's configurable. The search paths for this file are as follows:

  • rich-presence.yml
  • ~/.rich-presence.yml
  • ~/.config/rich-presence/rich-presence.yml

rationale

Why a proxy? Because initial connection to the Discord IPC pipe is slow and the UX is unfriendly. Plus, if running on WSL, you kind of need some sort of proxy to interface with Windows named pipes (see WSL.md for more notes).

rich-presence-cli's People

Contributors

andreykaipov avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.